Common
Start:
Ftp-v-d-I-n-g [host name], where-v displays the remote service
-V: Display All response information of the remote server
-D. Use the debugging mode.
-I etr File
-N: Restrict ftp automatic logon, that is, do not use
-G cancel the Global File Name
Ftp> User specifies the user of the remote computer.
Format: User Username [Password] [account]
Description: User-name indicates the user name used to log on to the remote computer. Password specifies the password of user-name. If this parameter is not specified but must be specified, the FTP command parameter in Linux 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 it, the FTP command parameter in Linux will prompt you to enter the account.
Ftp> help displays the FTP command parameter commands in Linux.
Format: Help [command]
Note: The command specifies the name of the command that requires instructions. If no command is specified, the FTP command parameters in Linux will display the list of all commands.
Ftp>? Show FTP command description .? Same as help.
Format :? [Command]
Note: [command] specifies the name of the command that requires help. If no command is specified, the ftp command parameters in linux will display the list of all commands.
FTP> dir: displays remote directory documentation and subdirectory list
Format: dir [remote-directory] [local-file]
Description: remote-directory specifies the directory to view its list. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the Local document to store the list. If not specified, the output is displayed on the screen.
FTP> ls displays the abbreviated list of remote directory documents and subdirectories.
Format: ls [remote-directory] [local-file]
Description: Remote-directory specifies the directory to view its list. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the local document to store the list. If not specified, the output is displayed on the screen.
Ftp> MLS displays the abbreviated list of remote directory documents and subdirectories.
Format: MLS remote-files [...] local-File
Description: Remote-files indicates 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> pwd: displays the current directory on the remote computer.
Ftp> mdir: displays the remote directory documentation and subdirectory list. You can use mdir to specify multiple documents.
Format: mdir remote-files [...] local-file
Description: remote-files specifies the directory 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 restore the list. Type-display the list on the screen.
FTP> mkdir: Create a remote directory.
Format: mkdir directory
Description: directory specifies the name of the new remote directory.
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> LCD changes the working directory on the local computer. By default, the working directory is the directory for starting ftp command parameters in linux.
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> 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 no type-name is specified, the current type is displayed.
FTP> get use the current document conversion type to copy remote documents to the 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> 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> 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 not specified, the document will be named local-file.
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> send copies local documents to a remote computer using the current file transfer type. Send is the same as put.
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 the remote computer. If not specified, the document will be named local-file.
FTP> rename remote document.
Format: rename filename newfilename
Description: filename specifies the document to be renamed. Newfilename specifies the new document name.
FTP> delete the documents on the remote computer.
Format: delete remote-file
Description: remote-file specifies the document to be deleted.
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> rmdir Delete the remote directory.
Format: rmdir directory
Description: directory specifies the name of the remote directory to be deleted.
FTP> close ends the ftp command parameter session in linux and returns the command interpreter.
FTP> disconnect is disconnected from the remote computer. Retain the ftp command parameter prompts in linux.
FTP> quit ends the ftp command parameter session in linux and exits the ftp command parameters in linux.
FTP> bye (or by) ends the ftp command parameter session with the remote computer in linux and exits the ftp command parameter in linux.
Complete
The following is a detailed description of ftp command parameters in linux.
FTP>! Exit from the ftp subsystem to the shell.
FTP>? Show ftp command description .? Same as help.
Format :? [Command]
Note: [command] specifies the name of the command that requires help. If no command is specified, the ftp command parameters in linux will display the 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 the 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: ftp command parameters in linux support two types of document transfer, namely, ASCII code and binary image. ASCII should be used for transferring text documents.
FTP> bell conversion rings to ring after each document transfer command is complete. By default, ringtones are disabled.
FTP> binary (or bi) sets the document transfer type to binary.
FTP> bye (or by) ends the ftp command parameter session with the remote computer in linux and exits the ftp command parameter in linux.
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 ftp command parameter session in linux and returns the command interpreter.
FTP> debug conversion debugging. When debugging is enabled, every command sent to the remote computer is printed, followed by the string "> ". Debugging is disabled by default.
FTP> delete the documents on the 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]
Description: remote-directory specifies the directory to view its list. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the Local document to store the list. If not specified, the output is displayed on the screen.
FTP> disconnect is disconnected from the remote computer. Retain the ftp command parameter prompts in linux.
FTP> get use the current document conversion type to copy remote documents to the 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. Combinations allow wildcard characters (* And?) in internal documents or pathnames ?). By default, a combination is enabled.
FTP> hash converts the digital signature (#) Printing of each transmitted data block. The data block size is 2048 bytes. By default, hashes are disabled.
FTP> help displays the ftp command parameter commands in linux.
Format: help [command]
Note: The command specifies the name of the command that requires instructions. If no command is specified, the ftp command parameters in linux will display the list of all commands.
FTP> LCD changes the working directory on the local computer. By default, the working directory is the directory for starting ftp command parameters in linux.
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 FTP command parameter server in remote Linux. Return the code of the FTP command parameter in a single Linux.
Format: literal argument [...]
Description: argument specifies the parameter of the FTP command parameter server to be sent to Linux.
Ftp> ls displays the abbreviated list of remote directory documents and subdirectories.
Format: ls [Remote-Directory] [local-file]
Description: Remote-directory specifies the directory to view its list. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the local document to store the list. If not specified, the output is 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. You can use mdir to specify multiple documents.
Format: mdir remote-files [...] local-File
Description: Remote-files specifies the directory 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 restore the list. Type-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: 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 documents and subdirectories.
Format: MLS remote-files [...] local-File
Description: Remote-files indicates 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 is connected to the FTP command parameter server in the specified Linux.
Format: Open Computer [port]
Description: Specifies the remote computer to connect. You can specify a computer by IP address or computer name (DNS or host documentation must be available ). If Automatic Logon is enabled (default), FTP will also attempt to automatically specify the port number used to contact the FTP command parameter server in Linux by logging on to the FTP command parameter server in Linux.
FTP> prompt conversion prompt. If mget and mput send any documents when the prompt is disabled, the ftp command parameters in linux will prompt you to allow you to selectively retrieve or store documents during multi-document transfer. By default, the prompt is enabled.
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 not specified, the document will be named local-file.
FTP> pwd: displays the current directory on the remote computer.
FTP> quit ends the ftp command parameter session in linux and exits the ftp command parameters in linux.
FTP> quote sends the parameter to the ftp command parameter server in remote linux. Return the code of the ftp command parameter in a single linux.
Quote is the same as literal.
Format: quote argument [...]
Description: argument specifies the parameter of the ftp command parameter server to be sent to linux.
FTP> recv use the current document transfer type to copy remote documents to a local computer. The 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: The command specifies the name of the command that requires help. If no command is specified, the FTP command parameters in Linux will display a list Of all remote commands.
Ftp> rename remote document.
Format: Rename filename newfilename
Description: 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 local documents to a remote computer using the current file transfer type. Send is the same as put.
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 the remote computer. If not specified, the document will be named local-file.
Ftp> Status: displays the current status of FTP command parameter connection and conversion in Linux.
Ftp> trace conversion packet tracing. Trace displays the route of each packet when running the FTP command parameter command in Linux.
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 no type-name is specified, the current type is displayed.
Ftp> User specifies the user of the remote computer.
Format: User Username [Password] [account]
Description: user-name indicates the user name used to log on to the remote computer. Password specifies the password of user-name. If this parameter is not specified but must be specified, the ftp command parameter in linux 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 it, the ftp command parameter in linux will prompt you to enter the account.
Convert FTP> verbose to verbose. If it is enabled, the ftp command parameter response in any linux system is displayed. After the document is transferred, statistics related to the transfer efficiency are displayed. By default, verbose is enabled.