FTP upload and download using lftp command in Linux system

Source: Internet
Author: User
Tags ftp login

The common operation commands under Linux are FTP, LFTP and SFTP, and the graphical interface is very useful FileZilla. However, in the server command interface, LFTP is more convenient to use and more powerful than FTP. Lftp interface is like the Linux shell, with command completion, history, allowing multiple background task execution, bookmarks, queueing, mirroring, breakpoint continuation, multi-process download and other functions.

Login FTP command

Code: LFTP Username: password @ftp address: Transfer port (default 21) Usage (1) lftp username:[email protected]:21 Enter (2) lftp [email protected] Carriage return # #默认21端口 Enter the secret after return Yards (3) lftp 127.0.0.1 Enter # #回车后 Login Login (4) lftp Enter-and open 127.0.0.1-Login The following is an introduction to LFTP's simple use and common commands. 1, login lftp ftp://user:[email protected]:p ort lftp user:[email protected]:p ort lftp site-p port-u user, Password lftp site:port-u User,password using the above commands can be implemented FTP login, if you do not enter a password, you will be prompted to enter. 2, PWD and lpwd and bash shell, the pwd command is used to display the current working directory on the server side; Lpwd is used to display the current working directory on the local machine. 3, LS and! The LLS command lists the directory contents on the server side, and!ls is used to list the contents of the directory on the local machine. 4, CD and LCD after entering the FPT site, the CD command is used to switch paths on the server side, and the LCD is used to switch paths on the local machine. 5. Download a, get and mget for downloading data from FTP. Get is used to download a file, and mget is used to download multiple files. Usage and parameters are as follows: Get [-e] [-A] [-c] [-O base] rfile [-o lfile] ... mget [-c] [-d] [-a] [-e] [-O base] files-c   support for the continuation of the breakpoint. -e   After successful download, delete server-side data-a   use ASCII mode download, default to binary mode download-d   Create and download folders with consistent file names and save files to the folder-O string   Specify the path where the download file is stored-o string   save data from the GET command to this file LfT, Pget is used to download data from FTP. This command can download data using multiple connections, increasing the download speed but increasing the load on the server and the network. Usage and parameters are: Get [OPTS] rfile [-O lfile]-C   support continuous pass-n int   Set maximum number of connections 6, upload A, put, mput for uploading data to the server side. Put is used to upload a file, and mput is used to upload multiple files. Usage and parameters are: ut [-e] [-A] [-c] [-O base] lfile [-o rfile] mput [-c] [-d] [-a] [-e] [-o base] The files parameter and the Get/mget parameter are identical. 7, Lftp Chinese chaosCode problem login to see is Chinese garbled (because the general local are UTF-8 encoding), with the set command to solve. # #设置ftp端的编码格式 Set File:charset utf-8.

FTP upload and download using lftp command in Linux system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.