Linux


使用ftp进入程序
使用bye退出程序
open 127.0.0.1 打开链接
get [remote-file] [local-file] 下载文件(根路径为打开ftp命令的目录)
put [local-file] [remote-file] 上传文件
mget [remote-file] [local-file] 可能是multi-get的缩写吧,使用表达式进行模糊匹配,下载多个文件(根路径为打开ftp命令的目录)
mput [remote-file] [local-file] 模糊匹配上传多个


mget 每一个都是要输入y/n,确认是否需要下载,如果不想交互,需要设置
interactive mode off
prompt 用于切换interactive mode的状态

ls 列出目录全部文件
cd 进入一个文件夹

ftp 通常默认是active模式,无法执行ls命令,需要开启passive模式
passive mode on

疯狂的妞妞 :每一天,做什么都好,不要什么都不做……
原文地址:https://www.cnblogs.com/chenss15060100790/p/15067547.html