Lftp is a free console-based and FTP client for Unix and Unix-like operating systems such as Linux. He is one of the most comprehensive of its kind author and initiator is Alexander Lukyanov.

In addition, the program supports the protocols FTP FXP, HTTP, FISH, SFTP, HTTPS and FTPS over SSL also. In addition, support lftp a wealth of functions, including recursive mirroring of directory trees, manage bookmarks, multiple simultaneous sessions to different servers in a shell ( by so-called " slots " ), timing of transfer, command queue and adjusting the usable bandwidth.

Particularly, the client stands by the Bash - like shell out that lets you not only work efficiently interactively, but lftp also by scripts interactively can control. It can optionally be customized via global or user-specific configuration files. Among other aliases, scripts and a custom prompt are possible.

Within the shell preceding exclamation serve as escape symbols, that is, they are not using the lftp shell, but with the user shell, was launched from the lftp running and thus processed locally. ls within lftp causes therefore a listing of the FTP directory! ls, however, that the contents of the local directory is displayed. The mixing of the two modes in scripts or queues allows very complex automated transfer operations.

Included with lftp also lftpget, can be downloaded directly to the files.


Lftp - u USERNAME, PASSWORD -p 22 -c " cd ORDNERXY && put DATEIXY " sftp :/ / SERVER ADDRESS Explanation: The "-u " parameter specifies the user name with which you want to log on to the remote server. The password is attached to after a comma. Special characters in the password must be marked with \.

The parameter " -p" specifies the port on which the remote server is reachable. This specify is only necessary if the remote port is different from the standard. Since SFTP server listening by default on port 22, the words "-p 22" in the above example is not necessary, since lftp would also connect without this information to port 22 on the SFTP server.

After the parameter "- c" commands can be specified that runs lftp and then terminated. In the example above, the program switches to the directory ORDNERXY ( by the command "cd ORDNERXY " ) and then performs (which is indicated by the " && " ) "put DATEIXY " from which the local file " DATEIXY " on the remote Server copies. In the example above combines lftp to an SFTP server, which is specified by the " sftp :/ / " before " Server Address ".

In contrast to the parameter " -c" commands after the parameter " - e" specifies that performs lftp and then not (!) Ended.