Commonly used FTP commands to explain

xiaoxiao2021-03-06  37

FTP>! Exit from the FTP subsystem to the housing.

FTP>? Displays the FTP command description. • The same as HELP.

Format:? [Command]

Description: [Command] Specifies the name of the command that needs help. If there is no Command, the FTP will display a list of all commands.

FTP> Append Use the current file type setting to attach a local file to a file on a remote computer.

Format: append local-file [remote-file]

Description: Local-file Specifies the local file to be added.

Remote-file Specifies the files to be added to the remote computer on the local-file. If Remote-File is omitted, the local file name will be used as a remote file name.

FTP> ASCII Sets the file transfer type as the default ASCII.

Note: FTP supports two file transfer types, ASCII codes, and binary images. ASCII should be used when transferring a text file.

FTP> BELL switches the ring to make a bell after each file transfer command. By default, the ringtone is closed.

FTP> Binary (or BI) Sets the file transfer type to binary.

FTP> BYE (or by) End the FTP session with the remote computer and exits the FTP.

FTP> CD Change the work 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 with the FTP session with the remote server and returns a command interpreter.

FTP> Debug switch debugging. When the debug is open, each command sent to the remote computer is printed, and the front is string ">". By default, debugging is closed.

FTP> Delete deletes files on the remote computer.

Format: Delete Remote-file

Description: Remote-file Specifies the file to be deleted.

FTP> DIR Displays a remote directory file and subdirectory list.

Format: DIR [remote-directory] [local-file]

Description: Remote-Directory specifies the directory to view its list. If you do not specify a directory, you will use the current work directory in the remote computer. Local-file Specifies the local file to store the list. If not specified, the output will be displayed on the screen.

FTP> Disconnect is disconnected from the remote computer and keeps the FTP prompt.

FTP> GET uses the current file conversion type to copy the remote file to the local computer.

Format: get remote-file [local-file]

Description: Remote-file Specifies the remote file to be copied.

Local-file Specifies the name you want to use on your local computer. If not specified, the file will be named Remote-file.

FTP> GLOB switch file name combination. The combination allows usage wildcards (* and?) In internal files or path names. By default, the combination is open.

FTP> HASH Switch the digital signature (#) printing of each data block that has been transferred. The size of the data block is 2048 bytes. By default, hash symbol printing is closed.

FTP> Help Displays the FTP command description.

Format: Help [Command]

Description: Command specifies the name of the command that needs to be required. If there is no Command, the FTP will display a list of all commands.

FTP> LCD changes the work directory on your local computer. By default, the working directory is a directory that starts the FTP.

Format: LCD [Directory]

Description: Directory specifies the directory on the local computer to be changed. If Directory is not specified, the current working directory in the local computer will be displayed. FTP> Litral sends the parameters to the remote FTP server. A single FTP reply code will be returned.

Format: Literal Argument [...]

Description: Argument Specifies the parameters to be sent to the FTP server.

FTP> LS Displays the abbreviation list of remote directory files and subdirectories.

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

Description: Remote-Directory specifies the directory to view its list. If you do not specify a directory, you will use the current work directory in the remote computer. Local-file Specifies the local file to store the list. If not specified, the output will be displayed on the screen.

FTP> MDELETE Deletes files on the remote computer.

Format: mdelete remote-files [...]

Description: Remote-files Specifies the remote file to be deleted.

FTP> MDIR Displays a remote directory file and subdirectory list. Multiple files can be specified using MDIR.

Format: MDir Remote-files [...] local-file

Description: Remote-files Specifies the directory to view the list. Remote-files must be specified. Type - Using the current work directory on your remote computer.

Local-file Specifies the local file to restore a list. Type - Display a list on the screen.

FTP> MGET uses the current file transfer type to copy the remote file to the local computer.

Format: MGET Remote-files [...]

Description: Remote-files Specifies the remote file to be copied to the local computer.

FTP> MKDIR Create a remote directory.

Format: MKDir Directory

Description: Directory specifies the name of the new remote directory.

FTP> MLS Displays the abbreviated list of remote directory files and subdirectories.

Format: mls remote-files [...] local-file

Description: Remote-files Specifies the file to view the list. Remote-file must be specified;

Type - Using the current work directory on your remote computer.

Local-file Specifies the local file to store the list. Type - to display a list on the screen.

FTP> MPUT Use the current file transfer type to copy local files to the remote computer.

Format: MPUT LOCAL-FILES [...]

Description: Local-files Specifies local files to be copied to remote computers

FTP> Open is connected to the specified FTP server.

Format: Open Computer [port]

Description: Computer Specifies the remote computer to connect. The computer (DNS or host file must be available) can be specified by an IP address or computer name. If automatic login is open (default), the FTP will also try to automatically log in to the FTP server port to specify the port number used to contact the FTP server.

FTP> Prompt switching prompt. If the prompt transmits all files when prompted, the FTP will prompt in the multi-file transfer process allows you to selectively retrieve or store files. By default, the prompt is

opened.

FTP> PUT uses the current file transfer type to copy local files to the remote computer.

Format: PUT local-file [remote-file]

Description: Local-file Specifies the local file to be copied.

Remote-file Specifies the name to be used on a remote computer. If not specified, the file will name Local-file.

FTP> PWD Displays the current directory on the remote computer. FTP> quit ends with the FTP session with the remote computer and exits the FTP.

FTP> quote sends the parameters to the remote FTP server. A single FTP reply code will be returned.

QUOTE is the same as Literal.

Format: quote argument [...]

Description: Argument Specifies the parameters to be sent to the FTP server.

FTP> Recv Use the current file transfer type to copy the remote file to the local computer. The RECV is the same as get.

Format: Recv remote-file [local-file]

Description: Remote-file Specifies the remote file to be copied.

Local-file Specifies the name you want to use on your local computer. If not specified, the file will be named Remote-file.

FTP> Remotehelp Displays the remote command help.

Format: Remotehelp [Command]

Description: Command specifies the name of the command that needs help. If no Command is specified, the FTP will display a list of all remote commands.

FTP> Rename Rename Remote File.

Format: Rename Filename NewFileName

Description: FileName Specifies files to be renamed. NewFileName Specifies the new file name.

FTP> RMDIR Deletes the remote directory.

Format: RMDir Directory

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

FTP> Send Use the current file transfer type to copy local files to the remote computer. Send is the same as PUT.

Format: Send local-file [remote-file]

Description: Local-file Specifies the local file to be copied. Remote-file Specifies the name to be used on a remote computer. If not specified, the file will name Local-file.

FTP> Status Displays the current state of the FTP connection and switching.

FTP> Trace Switch Packet Tracking. Trace Displays the route of each packet when running an FTP command.

FTP> TYPE settings or displays file transfer types.

Format: Type [type-name]

Description: Type-name Specifies the file transfer type. The default is set to ASCII. If you do not specify Type-Name, the current type will be displayed.

FTP> User Specifies the user of the remote computer.

Format: User Username [Password] [Account]

Description: User-name Specifies the username used to log in to the remote computer. Password specifies the password of the user-name. If not specified, but must be specified, the FTP will prompt the password.

Account Specifies the account used to log in to the remote computer. If you do not specify an Account, you need to specify, FTP will prompt you to enter your account.

FTP> Verbose handover Verbose mode. If open, all FTP responses will be displayed. After the file transfer is complete, statistics related to the transmission efficiency will be simultaneously displayed. By default, Verbose is open.

转载请注明原文地址:https://www.9cbs.com/read-66296.html

New Post(0)