[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
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
- 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