/*连接*/
$ ftp 192.168.180.2
Connected to 192.168.180.2.
Name (192.168.180.2:rivsidn): admin
Password:
/*获取远端文件*/
ftp> get test.pdf
local: test.pdf remote: test.pdf
72007566 bytes received in 6.87 secs (9.9917 MB/s)
ftp>
/*查看当前路径*/
ftp> pwd
/*因为当前server是windows系统,此处是乱码,所以没显示*/
ftp>
ftp>
/*显示当前目录下的文件*/
ftp> ls
dr-xr-xr-x 1 owner group 0 May 02 10:03 .
dr-xr-xr-x 1 owner group 0 May 02 10:03 ..
-rwxrwxrwx 1 owner group 282 May 02 10:04 desktop.ini
-rwxrwxrwx 1 owner group 154 Jul 12 22:05 FAQs.txt
-rwxrwxrwx 1 owner group 2439 Jul 11 15:55 Google Chrome.lnk
-rwxrwxrwx 1 owner group 1417 Jul 13 16:19 Microsoft Edge.lnk
-rwxrwxrwx 1 owner group 72007566 Jul 18 13:19 test.pdf
ftp>