← 返回命令列表

Linux command

lftp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect

lftp -u [username] ftp.example.com

Download

mget [path/to/*.png]

Upload

mput [path/to/*.zip]

Delete

mrm [path/to/*.txt]

Rename

mv [original] [new_name]

Mirror

mirror [remote_dir] [local_dir]

Upload

mirror -R [local_dir] [remote_dir]

说明

lftp is a sophisticated file transfer program supporting FTP, HTTP, SFTP, FISH, and torrent protocols. It features job control, bookmarks, mirroring, and can transfer several files in parallel.

参数

-u, --user USER,PASS
Use specified username and optional password
-p PORT
Connect to specified port
-e COMMANDS
Execute commands after connecting
-c COMMANDS
Execute commands and exit
-f FILE
Execute commands from file
-d
Enable debug output

FAQ

What is the lftp command used for?

lftp is a sophisticated file transfer program supporting FTP, HTTP, SFTP, FISH, and torrent protocols. It features job control, bookmarks, mirroring, and can transfer several files in parallel.

How do I run a basic lftp example?

Run `lftp -u [username] ftp.example.com` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u, --user USER,PASS do in lftp?

Use specified username and optional password