1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:42:07 +02:00
tldr/pages/linux/lftp.md
marchersimon dac4a71077
multiple pages: replace all die.net links (#5528)
Most of the links were replaced by manned.org,
except when there are more up-to-date sources (like `ifup`)
or first-party sources (like `sftp`).
2021-04-16 15:42:14 +01:00

32 lines
670 B
Markdown

# lftp
> Sophisticated file transfer program.
> More information: <https://lftp.yar.ru/lftp-man.html>.
- Connect to an FTP server:
`lftp {{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 {{path/to/local_dir}} {{path/to/remote_output_dir}}`