• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lftp Command Examples in Linux

by Deepika

“lftp” is a free, open-source, and cross-platform command-line file transfer program. It supports various protocols such as FTP, HTTP, SFTP, and others, making it a versatile tool for transferring files over the network.

Some of the key features of lftp include:

  • Multi-threaded transfer: lftp can transfer multiple files at the same time, resulting in faster transfer speeds.
  • Resume support: lftp can resume broken transfers, allowing users to pick up where they left off.
  • Mirroring: lftp supports mirroring directories and can be used to keep local and remote directories in sync.
  • Scripting: lftp can be controlled through shell scripts, allowing users to automate complex transfer tasks.

Overall, lftp is a powerful and sophisticated file transfer program that offers advanced features for managing and transferring files over the network. It is widely used by system administrators and other users who need a robust and efficient tool for transferring large amounts of data.

lftp Command Examples

1. Connect to an FTP server:

# lftp ftp.example.com

2. Download multiple files (glob expression):

# mget path/to/*.png

3. Upload multiple files (glob expression):

# mput path/to/*.zip

4. Delete multiple files on the remote server:

# mrm path/to/*.txt

5. Rename a file on the remote server:

# mv original_filename new_filename

6. Download or update an entire directory:

# mirror path/to/remote_dir path/to/local_output_dir

7. Upload or update an entire directory:

# mirror -R path/to/local_dir path/to/remote_output_dir

Filed Under: Linux

Some more articles you might also be interested in …

  1. Using cut on Linux Terminal
  2. mdp Command Examples
  3. faillock: command not found
  4. –force V/s –nodeps : rpm command options to install or uninstall a package
  5. sesearch: command not found
  6. CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)
  7. gcalcli: Command-line tool to interact with Google Calendar
  8. phar Command Examples in Linux
  9. How to Use the ssh-keygen Command to configure passwordless ssh
  10. jekyll Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright