Complete Set of Linux FTP Command Parameters

Source: Internet
Author: User

Linux FTP command parameters are common server control methods. Now we will introduce some Linux FTP command parameters. I hope to help you quickly read these commands. These commands are common and will certainly help you. The following describes the Linux FTP command parameters.

Ftp>! Exit from the FTP subsystem to the shell 。

Ftp>? Shows FTP command description 。? Same as help 。

Format :? [Command]

Note: [command] specifies the command name for help. If no command is specified, the Linux FTP command parameters will display a list Of all commands 。

Ftp> append use the current document type configuration to attach a local document to a remote computer 。

Format: append local-file [Remote-file]

Note: local-file specifies the local document to be added 。

Remote-file specifies the document on the remote computer where local-file is to be added. If remote-file is omitted, the local document name will be used as the remote document name 。

Ftp> ASCII: Set the document transfer type to the default ASCII 。

Note: Linux FTP command parameters support two types of File Transfer: ASCII code and binary image. ASCII should be used when transferring text files 。

Ftp> Bell switch rings to ring after each document transfer command is completed. By default, the ringtone is disabled 。

Ftp> binary (or bi) sets the document transfer type to binary 。

Ftp> Bye (or by) ends the Linux FTP command parameter session with the remote computer and exits the Linux FTP command parameter 。

Ftp> Cd to change the working directory on the remote computer 。

Format: CD remote-directory

Description: Remote-directory specifies the directory on the remote computer to be changed 。

Ftp> close ends the Linux FTP command parameter session with the remote server and returns the command interpreter 。

Ftp> debug conversion debugging. When debugging is enabled, every command sent to the remote computer is printed, followed by a string ">". By default, debugging is disabled 。

Ftp> delete documents on a remote computer 。

Format: delete remote-File

Description: Remote-file specifies the document to be deleted 。

Ftp> dir: displays the remote directory documentation and subdirectory list 。

Format: dir [Remote-Directory] [local-file]

Note: Remote-directory specifies the directory to view its list. If no directory is specified, the current working directory in the remote computer will be used. Local-file specifies the local document to store the list. If not specified, the output will be displayed on the screen 。

Ftp> disconnect is disconnected from the remote computer and the Linux FTP command parameter prompt is retained 。

Ftp> Get use the current document conversion type to copy remote documents to a local computer 。

Format: Get remote-file [local-file]

Description: Remote-file specifies the remote document to be copied 。

Local-file specifies the name to be used on the local computer. If not specified, the document will be named remote-file 。

Ftp> glob conversion document name combination. The combination allows wildcard characters (* And?) in the internal document or path name ?) By default, the combination is open 。

Ftp> the digital signature (#) of each transmitted data block is printed by hash conversion. The size of the data block is 2048 bytes. By default, the hashes are disabled 。

Ftp> help displays the command description of Linux FTP command parameters 。

Format: Help [command]

Note: command specifies the name of the command that requires instructions. If no command is specified, the Linux FTP command parameters will display a list Of all commands 。

Ftp> LCD changes the working directory on the local computer. By default, the working directory is the directory for starting Linux FTP command parameters 。

Format: LCD [Directory]

Note: Directory specifies the directory on the local computer to be changed. If no directory is specified, the current working directory on the local computer is displayed 。

Ftp> literal sends the parameter to the remote Linux FTP command parameter server.Code。

Format: literal argument [...]

Description: argument specifies the parameters to be sent to the Linux FTP command parameter server 。

Ftp> ls displays the abbreviation list of remote directory documents and subdirectories 。

Format: ls [Remote-Directory] [local-file]

Note: Remote-directory specifies the directory to view its list. If no directory is specified, the current working directory in the remote computer will be used. Local-file specifies the local document to store the list. If not specified, the output will be displayed on the screen 。

Ftp> mdelete delete Delete the documents on the remote computer 。

Format: mdelete remote-files [...]

Description: Remote-files indicates the remote document to be deleted 。

Ftp> mdir: displays the remote directory documentation and subdirectory list. Multiple documents can be specified using mdir 。

Format: mdir remote-files [...] local-File

Note: Remote-files specifies the directory to view the list. You must specify remote-files. Enter the current working directory on the remote computer 。

Local-file specifies the local document to restore the list. Type-to display the list on the screen 。

Ftp> mget copies remote documents to a local computer using the current document transfer type 。

Format: mget remote-files [...]

Description: Remote-files indicates the remote document to be copied to the local computer 。

Ftp> mkdir creates a remote directory 。

Format: mkdir directory

Specifies the name of the new remote directory 。

Ftp> MLS displays the abbreviations of remote directory documents and subdirectories 。

Format: MLS remote-files [...] local-File

Note: Remote-files specifies the document to view the list. You must specify remote-files;

Type-use the current working directory on the remote computer 。

Local-file specifies the local document to store the list. Type-to display the list on the screen 。

Ftp> mput copies local documents to a remote computer using the current file transfer type 。

Format: mput local-files [...]

Note: local-files specifies the local file to be copied to a remote computer.

Ftp> open and the specified Linux FTP command parameter server connection 。

Format: Open Computer [port]

Note: The computer specifies the remote computer to be connected. The computer can be specified through the IP address or computer name (DNS or host documentation must be available). If Automatic Logon is enabled (default ), FTP will also attempt to automatically log on to the Linux FTP command parameter server port to specify the port number used to contact the Linux FTP command parameter server 。

Ftp> prompt conversion prompt. If mget and mput send any documents when the prompt is closed, the Linux FTP command parameter will prompt you to allow you to selectively retrieve or store documents during multi-document transfer. By default, the prompt is open 。

Ftp> put: copy the local file to a remote computer using the current file transfer type 。

Format: put local-file [Remote-file]

Note: local-file specifies the local document to be copied 。

Remote-file specifies the name to be used on the remote computer. If this parameter is not specified, the document is named local-file 。

Ftp> pwd: displays the current directory on the remote computer 。

Ftp> quit ends the Linux FTP command parameter session with the remote computer and exits the Linux FTP command parameter 。

Ftp> quote sends the parameter to the remote Linux FTP command parameter server verbatim. A single Linux FTP command parameter response code is returned 。

Quote is the same as literal 。

Format: quote argument [...]

Description: argument specifies the parameters to be sent to the Linux FTP command parameter server 。

Ftp> Recv copies remote documents to the local computer using the current file transfer type. Recv and get are the same 。

Format: Recv remote-file [local-file]

Description: Remote-file specifies the remote document to be copied 。

Local-file specifies the name to be used on the local computer. If not specified, the document will be named remote-file 。

Ftp> remotehelp: displays Remote Command help 。

Format: remotehelp [command]

Note: command specifies the name of the command that requires help. If no command is specified, the Linux FTP command parameters will display a list Of all remote commands 。
Ftp> rename remote document 。

Format: Rename filename newfilename

Note: Filename specifies the document to be renamed. newfilename specifies the new document name 。

Ftp> rmdir Delete the remote directory 。

Format: rmdir directory

Description: Directory specifies the name of the remote directory to be deleted 。

Ftp> send copies the local file to a remote computer using the current file transfer type. Send and put are the same 。

Format: Send local-file [Remote-file]

Note: local-file specifies the local document to be copied. Remote-file specifies the name to be used on a remote computer. If not specified, the document will be named local-file 。

Ftp> Status: displays the current status of connection and conversion of Linux FTP command parameters 。

Ftp> trace conversion packet tracing. Trace displays the route of each packet when running the Linux FTP command parameter command 。

Ftp> type configuration or display document transfer type 。

Format: Type [type-name]

Description: type-name specifies the document transfer type. The default value is ASCII. If type-name is not specified, the current type is displayed 。

Ftp> User specifies the user of the remote computer 。

Format: User Username [Password] [account]

Note: User-name specifies the user name used to log on to the remote computer. Password specifies the user-name password. If this parameter is not specified, but must be specified, the Linux FTP command parameter will prompt you to enter the password 。

Account specifies the account used to log on to the remote computer. If no account is specified, but you need to specify the account, the Linux FTP command parameter will prompt you to enter the account 。

Ftp> verbose converts to verbose mode. If it is enabled, any Linux FTP command parameter response is displayed. statistics related to the transfer efficiency are displayed after the file is transferred. By default, verbose is enabled 。

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.