FTP 指令
指令:
https://puremonkey2010.blogspot.tw/2011/10/linux-ftp.html
# ftp 192.168.64.180 Connected to 192.168.64.180 (192.168.64.180). 220 (vsFTPd 3.0.2) Name (192.168.64.180:root): itachi 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir 227 Entering Passive Mode (192,168,64,180,255,132). 150 Here comes the directory listing. -rw-r--r-- 1 0 0 936 Apr 21 07:03 MD5.txt drwxr-xr-x 2 1000 1000 6 Apr 21 07:07 XSS.txt 226 Directory send OK. ftp> get MD5.txt local: MD5.txt remote: MD5.txt 227 Entering Passive Mode (192,168,64,180,255,135). 150 Opening BINARY mode data connection for MD5.txt (936 bytes). 226 Transfer complete. 936 bytes received in 3.2e-05 secs (29250.00 Kbytes/sec) ftp> mget MD5.txt XSS mget MD5.txt? 227 Entering Passive Mode (192,168,64,180,255,139). 150 Opening BINARY mode data connection for MD5.txt (936 bytes). 226 Transfer complete. 936 bytes received in 0.000192 secs (4875.00 Kbytes/sec) ftp> delete MD5.txt 250 Delete operation successful. ftp> put MD5.txt local: MD5.txt remote: MD5.txt 227 Entering Passive Mode (192,168,64,180,255,129). 150 Ok to send data. 226 Transfer complete. 936 bytes sent in 2.6e-05 secs (36000.00 Kbytes/sec) ftp> mkdir CCNA 257 "/home/itachi/CCNA" created ftp>dir:顯示遠端登入伺服器的目錄內容
get:下載單一檔案
mget:下載多個檔案
delete:刪除主機上的檔案
put:上傳檔案到這個檔案到伺服器上
mkdir: 建立目錄參考資料:
https://puremonkey2010.blogspot.tw/2011/10/linux-ftp.html
留言
張貼留言