Some tips for using LFTP Tools on Linux operating systems

Source: Internet
Author: User
Tags command line ftp interface openssl library linux

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.