1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 11:15:25 +02:00
tldr/pages/linux/lftp.md
Managor 79b8d3e3b8
*: replace … with individual dots and refresh pages (#16368)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-04 10:20:26 +03:00

715 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_dir}} {{path/to/local_output_dir}}

  • Upload or update an entire directory:

mirror {{[-R|--reverse]}} {{path/to/local_dir}} {{path/to/remote_output_dir}}