mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-13 22:51:13 +03:00
lftp: add page (#4157)
Co-authored-by: Ein Verne <git@einverne.info> Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
parent
d7183c983d
commit
efd81478f1
32
pages/linux/lftp.md
Normal file
32
pages/linux/lftp.md
Normal file
@ -0,0 +1,32 @@
|
||||
# lftp
|
||||
|
||||
> Sophisticated file transfer program.
|
||||
> More information: <https://linux.die.net/man/1/lftp>.
|
||||
|
||||
- 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}}`
|
Loading…
Reference in New Issue
Block a user