Lftp is a powerful download tool that supports protocol access to files: FTP, SFTP,FTPS, HTTP, https, hftp, fish. (where FTPs and HTTPS need to include the OpenSSL library at compile time). Llftp interface very want a shell: has the command complement, the history record, allows the multiple backstage task execution and so on the function, uses very conveniently. It also has features such as bookmarks, queues, mirroring, breakpoint continuation, and multiple process downloads.
Command-line Syntax
To see Lftp's command-line syntax, just enter LFTP in the shell--help
lftp [OPTS] <site>
`lftp' 是在 rc 文件执行后 lftp 执行的第一个命令
-f <file> 执行文件中的命令后退出
-c <cmd> 执行命令后退出
--help 显示帮助信息后退出
--version 显示 lftp 版本后退出
其他的选项同 `open' 命令
-e <cmd> 在选择后执行命令
-u <user>[,<pass>] 使用指定的用户名/口令进行验证
-p <port> 连接指定的端口
<site> 主机名, URL 或书签的名字
If you enter a site name on the command line, LFTP will log on to the site directly, such as
[yhj@ccse-yhj yhj]$ lftp ftp://dsec.pku.edu.cn:27/incoming/
... ... (此处略去站点登录信息)
cd 成功,当前目录=/incoming
lftp dsec.pku.edu.cn:/incoming>
If you do not enter a site name at the command line, you must open it with the Open command after entering the LFTP interface
[yhj@ccse-yhj yhj]$ lftp
lftp :~> open ftp://dsec.pku.edu.cn:27/incoming/
cd 成功,当前目录=/incoming
lftp dsec.pku.edu.cn:/incoming>
Related documents