Linux ftp 命令
生活随笔
收集整理的這篇文章主要介紹了
Linux ftp 命令
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
[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
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
ftp>?binary??//?設(shè)置傳輸方式為binary??
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> ls227 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
在下載一個(gè)文件之前,我們首先需要使用lcd命令設(shè)定本地接受目錄位置。
ftp> lcd /data/dt3/
ftp> get volte.zip
使用 put命令上傳文件:
put ?file
當(dāng)文件不再當(dāng)前本地目錄下的時(shí)候,可以使用絕對(duì)路徑:
put /path/file
同樣,可以上傳多個(gè)文件:
mput *.xls
?
關(guān)閉 FTP 連接
完成FTP工作后,為了安全起見(jiàn)需要關(guān)閉連接。有三個(gè)命令可以關(guān)閉連接:
bye
exit
quit
總結(jié)
以上是生活随笔為你收集整理的Linux ftp 命令的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Mybatis源码之与Spring集成包
- 下一篇: Linux ftp传送问题 WARNIN