Linux ftp 命令

[deepen@vd26wyjl01 ~]$ ftp IP地址
Connected to 10.xxxx.191 (10.xxxx191).
220-FileZilla Server 0.9.53 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
220 Please visit https://filezilla-project.org/
Name (10.xxxx.191:deepen): yzcloud
331 Password required for yzcloud
Password:
230 Logged on

Remote system type is UNIX.


--遍历文件

ftp> ls
227 Entering Passive Mode (xxxxxxx)
150 Opening data channel for directory listing of "/"
-rw-r--r-- 1 ftp ftp        7404450 May 25  2017 0525.zip
-rw-r--r-- 1 ftp ftp        7521933 Jun 02  2017 0602.zip

-rw-r--r-- 1 ftp ftp       15738963 Jun 05  2017 0605.zip


  1. ftp> binary  // 设置传输方式为binary  


在下载一个文件之前,我们首先需要使用lcd命令设定本地接受目录位置。

ftp> lcd /data/dt3/


ftp> get volte.zip


使用 put命令上传文件:

put  file
当文件不再当前本地目录下的时候,可以使用绝对路径:

put /path/file
同样,可以上传多个文件:

mput *.xls
 

关闭 FTP 连接


完成FTP工作后,为了安全起见需要关闭连接。有三个命令可以关闭连接:

bye
exit
quit


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

松门一枝花

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值