$ ftp 192.168.0.102
输入用户名和密码皆为 anonymous
ftp> cd DK_Documents
ftp> ls
上传文件:
首先将要上传的文件所在的目录设为当前的工作目录
ftp> lcd /home/jimmy/Downloads/
Local directory now /home/jimmy/Downloads
上传文件
ftp> put WorkMethodsByGooglePeriod.epub
local: WorkMethodsByGooglePeriod.epub remote: WorkMethodsByGooglePeriod.epub
200 PORT command successful
150 Opening BINARY mode data connection for WorkMethodsByGooglePeriod.epub
226 Transfer complete
275354 bytes sent in 0.10 secs (2644.5 kB/s)
要一次性上传多个文件使用mput
下载文件:
ftp> get progit.epub
local: progit.epub remote: progit.epub
200 PORT command successful
150 Opening BINARY mode data connection for progit.epub (4346158 bytes)
226 Transfer complete
4346158 bytes received in 0.90 secs (4710.0 kB/s)
同理,要一次性下载多个文件,使用mget
输入用户名和密码皆为 anonymous
ftp> cd DK_Documents
ftp> ls
上传文件:
首先将要上传的文件所在的目录设为当前的工作目录
ftp> lcd /home/jimmy/Downloads/
Local directory now /home/jimmy/Downloads
上传文件
ftp> put WorkMethodsByGooglePeriod.epub
local: WorkMethodsByGooglePeriod.epub remote: WorkMethodsByGooglePeriod.epub
200 PORT command successful
150 Opening BINARY mode data connection for WorkMethodsByGooglePeriod.epub
226 Transfer complete
275354 bytes sent in 0.10 secs (2644.5 kB/s)
要一次性上传多个文件使用mput
下载文件:
ftp> get progit.epub
local: progit.epub remote: progit.epub
200 PORT command successful
150 Opening BINARY mode data connection for progit.epub (4346158 bytes)
226 Transfer complete
4346158 bytes received in 0.90 secs (4710.0 kB/s)
同理,要一次性下载多个文件,使用mget