原 Linux 终端访问 FTP 及 上传下载 文件https://blog.youkuaiyun.com/tianlesoftware/article/details/5818990版权声明: https://blog.youkuaiyun.com/tianlesoftware/article/details/5818990
今天同事问我一个问题,在Linux 下访问FTP,并将文件上传上去。 我之前一直是用WinSCP工具的。 先将文件从linux copy到windows下,然后在传到ftp上。 google 一下。 方法也比较简单。 这里只讨论通过终端来连接,因为也可以通过IE 或者其他工具。
1. Linux 终端连接FTP
[oracle@Dave ~]$ ftp 10.85.7.97
Connected to 10.85.7.97.
220 Serv-U FTP Server v6.4 for WinSock ready...
500 'AUTH': command not understood.
500 'AUTH': command not understood.
KERBEROS_V4 rejected as an authentication type
Name (10.85.7.97:oracle): super
331 User name okay, need password.
Password: -- Linux 的密码是不回显的
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
如果FTP 允许匿名用户,那么用户名要输入anonymous,密码任意。 不能直接敲回车。
2. 查看FTP 命令
ftp> ?
Commands may be abbreviated. Commands are:
! cr mdir proxy send
$ delete mget sendport site
account debug mkdir put size
append dir mls pwd status
ascii disconnect mode quit struct
bell form modtime quote system
binary get mput recv sunique
bye glob newer reget tenex
case hash nmap rstatus trace
ccc
Linux终端访问FTP及上传下载文件
最新推荐文章于 2025-05-17 16:04:07 发布