commands.sh

lftp

linux

Sophisticated file transfer program.

More info →

Options (2)

-u, --userboolean

Connect to an FTP server

Example: lftp {{[-u|--user]}} {{username}} {{ftp.example.com}}
-R, --reverseboolean

[Interactive] Upload or update an entire directory

Example: mirror {{[-R|--reverse]}} {{path/to/local_directory}} {{path/to/remote_output_directory}}

Examples (7)

Connect to an FTP server

lftp [-u|--user] username ftp.example.com

[Interactive] Download multiple files (glob expression)

mget path/to/*.png

[Interactive] Upload multiple files (glob expression)

mput path/to/*.zip

[Interactive] Delete multiple files on the remote server

mrm path/to/*.txt

[Interactive] Rename a file on the remote server

mv original_filename new_filename

[Interactive] Download or update an entire directory

mirror path/to/remote_directory path/to/local_output_directory

[Interactive] Upload or update an entire directory

mirror [-R|--reverse] path/to/local_directory path/to/remote_output_directory
made by @shridhargupta | data from tldr-pages