lftp

from Wikipedia, the free encyclopedia
lftp
Basic data

developer Alexander V. Lukyanov
Publishing year August 1, 1996
Current  version 4.9.1
( January 15, 2020 )
operating system various Unix derivatives
programming language C ++
category FTP client
License GPL
German speaking Yes
lftp.yar.ru

lftp is a free and console based FTP client for Unix and Unix-like operating systems such as Linux . It is one of the largest of its kind. The author and initiator is Alexander Lukyanov.

In addition to FTP , the program supports the protocols FXP , HTTP , FISH , SFTP , HTTPS , FTPS and BitTorrent . In addition, lftp supports a wide range of functions, including recursive mirroring of directory trees, management of bookmarks, several simultaneous sessions to different servers in one shell (through so-called "slots"), scheduling of transfers, command queues and adapting the usable bandwidth.

The client particularly stands out due to the Bash- like shell, with which you can not only work efficiently and interactively, but also interactively control lftp using scripts. It can optionally be adapted via global or user-specific configuration files. Aliases, scripts and a user-defined prompt are all possible.

Within the shell, prefixed exclamation marks serve as escape symbols . In other words, they are not executed with the lftp shell but with the user shell from which lftp was started and are therefore processed locally. lswithin lftp, a listing of the FTP directory, !lson the other hand, causes the content of the local directory to be displayed. The mixing of both operating modes in scripts or queues enables very complex automated transfer processes.

The scope of delivery of lftp also includes lftpget, with which files can be downloaded directly.

Examples

lftp -u BENUTZERNAME,KENNWORT -p 22 -c "cd ORDNERXY && put DATEIXY" sftp://SERVERADRESSE

Explanation: The parameter "-u" transfers the user name with which one would like to log on to the remote server. The password is appended after a comma. Special characters in the password must be marked with \.

The "-p" parameter specifies the port on which the remote server can be reached. This is only necessary if the remote port deviates from the standard. Since the SFTP server listens on port 22 by default, the specification “-p 22” is not necessary in the above example, since lftp would connect to port 22 on the SFTP server even without this specification.

After the "-c" parameter, commands can be specified that lftp executes and then terminates. In the example above, the program changes to the folder ORDNERXY (with the command “cd ORDNERXY”) and then executes (which is indicated by the “&&”) the command “put DATEIXY”, which transfers the local file “DATEIXY” to the remote Server copied. In the example above, lftp connects to an SFTP server, which is indicated by the sftp://"SERVER ADDRESS".

In contrast to the “-c” parameter, commands can be specified after the “-e” parameter, which lftp executes and then does not (!) Terminate.

Web links

Individual evidence

  1. groups.google.com .
  2. Release 4.9.1 . January 15, 2020 (accessed January 16, 2020).
  3. ^ The lftp Open Source Project on Open Hub: Languages ​​Page . In: Open Hub . (accessed on July 18, 2018).