Files
tldr/pages/linux/lftp.md
T
ManagorandDylan 03eaa4c365 *: use "directory" instead of "dir" (#18082)
* batch

* Update pages/osx/sips.md

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>

* Update pages/osx/sips.md

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>

---------

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-09-12 11:34:33 -07:00

739 B

lftp

Sophisticated file transfer program. More information: https://lftp.yar.ru/lftp-man.html.

  • Connect to an FTP server:

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

  • Download multiple files (glob expression):

mget {{path/to/*.png}}

  • Upload multiple files (glob expression):

mput {{path/to/*.zip}}

  • Delete multiple files on the remote server:

mrm {{path/to/*.txt}}

  • Rename a file on the remote server:

mv {{original_filename}} {{new_filename}}

  • Download or update an entire directory:

mirror {{path/to/remote_directory}} {{path/to/local_output_directory}}

  • Upload or update an entire directory:

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