How to use ftp command under Linux

  
                

Using the ftp command in the Linux system, users can perform file transfer operations, which are often used in Linux system operations. The following small series will introduce you to the use of Linux commands.

[root @ www ~] # command

Under yum install ftp ftp installation support RedHat series version [root @ www ~] # ftp ftp command from

FTP "open connection command

FTP" to 10.10.22.8 connection host

FTP"admin login name

FTP"passwd login password

Connection success < Br>

FTP"! Exit from the ftp subsystem to the shell.

FTP"? Display the ftp command description. ? Same as help.

FTP append Use the current document type configuration to attach a local document to a document on a remote computer.

FTP" ascii Configures the document transfer type as the default ASCII.

FTP" bell Converts the bell to ring after each document transfer command is completed. By default, the ringtone is turned off.

FTP binary (or bi) Configures the document transfer type as binary.

FTP" bye (or by) Ends the ftp command parameter session with the remote computer and exits the ftp command parameter in linux.

FTP cd Change the working directory on the remote computer.

FTP" close Ends the ftp command parameter session with the remote server and returns the command interpreter.

FTP" debug conversion debugging. When debugging is turned on, each command sent to the remote computer is printed, preceded by the string ""”. By default, debugging is turned off.

FTP" delete Delete documents on remote computers.

FTP dir Shows a list of remote directory documents and subdirectories.

FTP" disconnect Disconnected from the remote computer, keep the ftp command parameters prompt in linux.

FTP get to copy remote documents to your local computer using the current document conversion type.

FTP "glob" converts document name combinations. Combinations allow wildcards (* and ?) to be used in internal documents or pathnames. By default, the combination is turned on.

FTP "hash" converts the digital signature (#) of each data block that has been transmitted. The size of the data block is 2048 bytes. By default, hash symbol printing is turned off.

FTP 》help Shows the ftp command parameter command description in linux.

FTP 》lcd Change the working directory on your local computer. By default, the working directory is the directory that starts the ftp command parameters in linux.

FTP "literal" sends the parameters verbatim to the ftp command parameter server in remote linux. Will return a single linux ftp command parameter reply code.

FTP ls Displays a list of abbreviations for remote directory documents and subdirectories.

FTP 》mdelete Deletes documents on remote computers.

FTP "mdir" displays a list of remote directory documents and subdirectories. Ability to specify multiple documents using mdir.

FTP 》mget copies remote documents to your local computer using the current document transfer type.

FTP "mkdir" Create a remote directory.

FTP 》mls Displays a list of abbreviations for remote directory documents and subdirectories.

FTP 》mput Use the current document transfer type to copy local documents to a remote computer.

FTP "open" and the specified linux ftp command parameter server connection.

FTP "prompt" conversion prompt. If mget and mput transfer any document when the prompt is closed, the ftp command parameter in linux will prompt you to selectively retrieve or store the document during multiple document transfer. By default, the prompt is open.

FTP 》put Use the current document transfer type to copy local documents to a remote computer.

FTP 》pwd displays the current directory on the remote computer.

FTP "quit" Ends the ftp command parameter session in the remote computer and exits the ftp command parameter in linux.

FTP "quote" Send parameters to the remote linux ftp command parameter server. Will return a single linux ftp command parameter reply code.

FTP ”recv Use the current document transfer type to copy remote documents to your local computer. Recv is the same as get.

FTP ”remotehelp Displays remote command help.

FTP "rename" Renames a remote document.

FTP rmdir Delete remote directory.

FTP ”send Use the current document transfer type to copy local documents to a remote computer. Send and put are the same.

FTP stats shows the current state of ftp command parameter connections and transitions in Linux.

FTP "trace" converts packet tracking. Trace displays the route of each packet when running the ftp command parameter command in linux.

FTP ”type Configure or display the document delivery type.

FTP "user" specifies the user of the remote computer.

FTP verbose converts verbose mode. If it is turned on, it will display any ftp command parameter response in linux. After the document transfer is completed, statistics related to the transfer efficiency are displayed at the same time. By default, verbose is turned on.

The above is the usage of the ftp command under Linux. The most complete Linux ftp command is here. The ftp command can achieve different effects with other commands, and can be applied to various scenarios.

Copyright © Windows knowledge All Rights Reserved