2025-03-14 21:59:59 -06:00
|
|
|
# lftp
|
|
|
|
|
|
|
|
|
|
> Sophisticated file transfer program.
|
|
|
|
|
> More information: <https://lftp.yar.ru/lftp-man.html>.
|
|
|
|
|
|
|
|
|
|
- Connect to an FTP server:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`lftp {{[-u|--user]}} {{username}} {{ftp.example.com}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mirror {{[-R|--reverse]}} {{path/to/local_dir}} {{path/to/remote_output_dir}}`
|