From efd81478f1773143fc3fa8e575b681ccf393978e Mon Sep 17 00:00:00 2001 From: Jonatas Leon Date: Sun, 12 Jul 2020 10:59:45 -0300 Subject: [PATCH] lftp: add page (#4157) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ein Verne Co-authored-by: Zlatan Vasović --- pages/linux/lftp.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/lftp.md diff --git a/pages/linux/lftp.md b/pages/linux/lftp.md new file mode 100644 index 000000000..70fcc72f5 --- /dev/null +++ b/pages/linux/lftp.md @@ -0,0 +1,32 @@ +# lftp + +> Sophisticated file transfer program. +> More information: . + +- 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}}`