LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lftp

sophisticated file transfer program supporting FTP, HTTP, SFTP, FISH

TLDR

Connect to FTP server
$ lftp -u [username] ftp.example.com
copy
Download multiple files
$ mget [path/to/*.png]
copy
Upload multiple files
$ mput [path/to/*.zip]
copy
Delete remote files
$ mrm [path/to/*.txt]
copy
Rename remote file
$ mv [original] [new_name]
copy
Mirror remote directory locally
$ mirror [remote_dir] [local_dir]
copy
Upload directory to remote
$ mirror -R [local_dir] [remote_dir]
copy

SYNOPSIS

lftp [options] [site]

DESCRIPTION

lftp is a sophisticated file transfer program supporting FTP, HTTP, SFTP, FISH, and torrent protocols. It features job control, bookmarks, mirroring, and can transfer several files in parallel.

PARAMETERS

-u, --user USER[,PASS]

Use specified username and optional password
-p PORT
Connect to specified port
-e COMMANDS
Execute commands after connecting
-c COMMANDS
Execute commands and exit
-f FILE
Execute commands from file
-d
Enable debug output

INTERACTIVE COMMANDS

mget PATTERN

Download files matching pattern
mput PATTERN
Upload files matching pattern
mrm PATTERN
Delete remote files matching pattern
mirror [OPTIONS] REMOTE [LOCAL]
Mirror directory (-R for reverse/upload)
pget FILE
Download file using multiple connections
queue
Queue commands for later execution

INSTALL

sudo apt install lftp
copy
sudo dnf install lftp
copy
sudo pacman -S lftp
copy
sudo apk add lftp
copy
sudo zypper install lftp
copy
brew install lftp
copy
nix profile install nixpkgs#lftp
copy

CAVEATS

Interactive commands like mget/mput are used within an lftp session, not from the shell. Supports parallel transfers for improved performance.

SEE ALSO

ftp(1), sftp(1), wget(1), curl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid