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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lftp: command not found

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.

If you encounter the below error while running the command lftp:

lftp: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install lftp
Ubuntu apt-get install lftp
Alpine apk add lftp
Arch Linux pacman -S lftp
Kali Linux apt-get install lftp
CentOS yum install lftp
Fedora dnf install lftp
OS X brew install lftp
Raspbian apt-get install lftp

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. cpupower: command not found
  2. srun Command Examples in Linux
  3. synopkg Command Examples in Linux
  4. How To Disable Weak Cipher And Insecure HMAC Algorithms In SSH Services In CentOS/RHEL 8
  5. lvs: command not found
  6. gprof: command not found
  7. pdftoppm Command Examples in Linux
  8. CentOS / RHEL 7 : unable to start vsftpd service
  9. smbpasswd: command not found
  10. fsck Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “aws ses” Command Examples
  • “aws secretsmanager” Command Examples
  • “aws s3api” Command Examples
  • “aws s3” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright