Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
linux/lftp Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lftp
> Sophisticated file transfer program.
> More information: <https://lftp.yar.ru/lftp-man.html>.
- Connect to an FTP server:
`lftp --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 {{path/to/local_dir}} {{path/to/remote_output_dir}}`