200 PORT command successful 150 Connecting to port 34583 226-File successfully transferred 226 0.849 seconds (measured here), 111.48 Kbytes per second 96936 bytes sent in 0.421 seconds (225 kbytes/s)
如果要上载不在当前工作目录中的文件,请使用该文件的绝对路径。
要将多个文件从本地目录上载到远程FTP服务器,请使用以下mput命令:
mput image1.jpg image2.jpg
mput image1.jpg? y 200 PORT command successful 150 Connecting to port 41075 226-File successfully transferred 226 1.439 seconds (measured here), 102.89 Kbytes per second 151586 bytes sent in 1.07 seconds (138 kbytes/s) mput image2.jpg? y 200 PORT command successful 150 Connecting to port 40759 226-File successfully transferred 226 1.727 seconds (measured here), 111.75 Kbytes per second 197565 bytes sent in 1.39 seconds (138 kbytes/s)
上传多个文件时,系统将提示您确认要上传的每个文件。
完成上传文件到远程FTP服务器后,用bye或关闭连接quit。
结论在本教程中,您学习了如何使用ftp命令下载文件并将文件上载到远程FTP服务器。
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx