Answers
可以使用 ~/.netrc
示例
machine 192.168.0.1
login ftpuser
password ftpuser_password
这样以后你每次
ftp 192.168.0.1
的时候,系统都会帮你以用户名ftpuser登录到该服务器。
雨季不再来
answered 10 years, 8 months ago
以下是 ftp --help 的文档。
~/ ftp --help
ftp: illegal option -- -
usage: ftp [-46AadefginpRtvV] [-N netrc] [-o outfile] [-P port] [-q quittime]
[-r retry] [-s srcaddr] [-T dir,max[,inc]]
[[user@]host [port]] [host:path[/]] [file:///file]
[ ftp://[user[:pass]@]host[:port]/path[/]]
[ http://[user[:pass]@]host[:port]/path] [...]
ftp -u URL file [...]
Kaedei
answered 10 years, 8 months ago