Http://jingyan.baidu.com/article/066074d68b6a7ac3c21cb038.html
FTP (File Transfer Protocol, FTP) is the protocol for transferring files on two computers on TCP/IP networks, and FTP is one of the earliest protocols used on TCP/IP networks and the Internet, which belongs to the application layer of the Network protocol group. The FTP client can issue commands to the server to download files, upload files, and create or change directories on the server.
FTP Server is more common on the Internet, the function of the Linux FTP command is to use the command to control the local and remote computer transfer files, here is a detailed description of the Linux FTP command some of the frequently used commands, I believe that the use of Linux for FTP operations will be very easy.
Tools/Materials
FTP connection
Open terminal, mouse click, or enter shortcut key (ctrl+alt+t)
The general format of the Linux FTP command is as follows: FTP hostname/IP, where "hostname/IP" is the host name of the remote machine to which you want to connect. On the command line, the hostname is an option, and if you specify a hostname, FTP will attempt to connect to the remote machine's FTP service;
If you do not specify a hostname, FTP will give you a prompt and wait for the user to enter the command: $ ftp,ftp; At this point, enter the Open command followed by the hostname or IP address at the ftp> prompt, attempting to connect to the specified host.
Whichever method is used, if the connection succeeds, you need to log on to the remote machine. If the user has an account on the remote machine, they can use the account via FTP and need to provide a password. The read and write permissions of the user account on the remote machine determine what files the user can download on the remote machine and where to put the uploaded files in
END
FTP commandNote: Although remote login to the server, where the remote computer input FTP command when the server is worth logging in, the local machine is worth the login before the FTP machine.
You must use the CD and LCD two commands to switch to the local machine directory where you want to copy the files and the server directory to which you want to copy them, and then execute the "put file name" to copy the file to the server, as well as the get command.
The most commonly used commands are:
LS lists the current directory of the remote machine
CD changes the working directory on the remote machine
LCD changes working directory on local Machine
ASCII set file transfer mode to ASCII mode
Binary set file transfer mode to binary
Close terminates the current FTP session
Hash displays a # number each time the data in the data buffer is transferred
Get (Mget) transfers the specified file from the remote machine to the local machine
Put (mput) transfers the specified file from the local machine to the remote machine
Open Connect Remote FTP site
Disconnect from the remote machine and exit FTP
? Show local Help information
! Go to the shell
How to use Linux FTP commands--Go