Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of ftp Command parameters in linux

2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the usage of ftp command parameters in linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the usage of ftp command parameters in linux"!

The following is a detailed explanation of the parameters of the ftp command in linux. I hope it will be helpful to you.

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

FTP >? Displays the ftp command description. ? Same as help.

Format:? [command]

Description: [command] specifies the name of the command that needs help. If you do not specify the ftp command parameter in command,linux, a list of all commands is displayed.

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

Format: append local-file [remote-file]

Description: local-file specifies the local document to add.

Remote-file specifies the document on the remote computer to which you want to add the local-file. If remote-file is omitted, the local document name will be used as the remote document name.

FTP > ascii configures the document delivery type to the default ASCII.

Description: the ftp command parameter in linux supports two document transfer types, ASCII code and binary image. ASCII should be used when transferring text documents.

The FTP > bell conversion rings to ring after each document delivery command completes. By default, the ringtone is off.

FTP > binary (or bi) configures the document transfer type to binary.

FTP > bye (or by) ends the session with the ftp command parameter in the linux of the remote computer and exits the ftp command parameter in linux.

FTP > cd change the working directory on the remote computer.

Format: cd remote-directory

Description: remote-directory specifies the directory on the remote computer to change.

FTP > close ends the session with the ftp command parameter in the linux of the remote server and returns the command interpreter.

FTP > debug conversion debugging. When debugging is turned on, every command sent to the remote computer is printed, preceded by the string ">". Debugging is off by default.

FTP > delete deletes the document on the remote computer.

Format: delete remote-file

Description: remote-file specifies the document to delete.

FTP > dir displays a list of remote directory documents and subdirectories.

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

Description: remote-directory specifies the directory whose list you want to view. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the local document in which to store the list. If not specified, the output will be displayed on the screen.

FTP > disconnect disconnects from the remote computer, leaving the prompt for the ftp command parameter in linux.

FTP > get copies remote documents to the local computer using the current document conversion type.

Format: get remote-file [local-file]

Description: remote-file specifies the remote document to copy.

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

FTP > glob transform document name combination. Combinations allow the use of wildcards (* and?) in internal documents or pathnames. By default, combinations are turned on.

FTP > hash converts the digital signature (#) printing of each data block that has been transmitted. The size of the block is 2048 bytes. Hash symbol printing is off by default.

FTP > help displays the ftp command parameter command description in linux.

Format: help [command]

Description: command specifies the name of the command that requires instructions. If you do not specify the ftp command parameter in command,linux, a list of all commands is displayed.

FTP > lcd change the working directory on your local computer. By default, the working directory is the directory where you start the ftp command parameters in linux.

Format: lcd [directory]

Description: directory specifies the directory on the local computer to change. If directory is not specified, the current working directory on the local computer will be displayed.

FTP > literal sends the parameters verbatim to the ftp command parameter server in the remote linux. A single ftp command parameter reply code in linux is returned.

Format: literal argument [...]

Description: argument specifies the parameters to be sent to the ftp command parameter server in linux.

FTP > ls displays an abbreviated list of remote directory documents and subdirectories.

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

Description: remote-directory specifies the directory whose list you want to view. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the local document in which to store the list. If not specified, the output will be displayed on the screen.

FTP > mdelete deletes the document on the remote computer.

Format: mdelete remote-files [...]

Description: remote-files specifies the remote document to delete.

FTP > mdir displays a list of remote directory documents and subdirectories. You can specify multiple documents using mdir.

Format: mdir remote-files [...] Local-file

Description: remote-files specifies the directory where you want to view the list. Remote-files must be specified. Please type-use the current working directory on the remote computer.

Local-file specifies the local document to restore the list. Please type-display the list on the screen.

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

Format: mget remote-files [...]

Description: remote-files specifies the remote document to copy to the local computer.

FTP > mkdir creates a remote directory.

Format: mkdir directory

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

FTP > mls displays an abbreviated list of remote directory documents and subdirectories.

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

Description: remote-files specifies the document to view the list. Remote-files must be specified

Please type-use the current working directory on the remote computer.

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

FTP > mput copies the local document to the remote computer using the current document transfer type.

Format: mput local-files [...]

Description: local-files specifies the local document to copy to the remote computer

FTP > open connects to the ftp command parameter server in the specified linux.

Format: open computer [port]

Description: computer specifies the remote computer to connect to. You can specify a computer by IP address or computer name (DNS or host document must be available). If automatic login is turned on (the default), ftp will also attempt to automatically log the user into the ftp command parameter server in linux. Port specifies the port number used to contact the ftp command parameter server in linux.

FTP > prompt conversion hint. If mget and mput send any documents when prompts are turned off, the ftp command parameter in linux will prompt you to selectively retrieve or store documents during multiple document transfers. By default, prompts are turned on.

FTP > put copies the local document to the remote computer using the current document transfer type.

Format: put local-file [remote-file]

Description: local-file specifies the local document to copy.

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 session with the ftp command parameter in the linux of the remote computer and exits the ftp command parameter in the linux.

FTP > quote sends the parameters verbatim to the ftp command parameter server in the remote linux. A single ftp command parameter reply code in linux is returned.

Quote is the same as literal.

Format: quote argument [...]

Description: argument specifies the parameters to be sent to the ftp command parameter server in linux.

FTP > recv copies remote documents to the local computer using the current document transfer type. Recv is the same as get.

Format: recv remote-file [local-file]

Description: remote-file specifies the remote document to copy.

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]

Description: command specifies the name of the command that needs help. If you do not specify the ftp command parameter in command,linux, a list of all remote commands is displayed.

FTP > rename renames the remote document.

Format: rename filename newfilename

Description: filename specifies the document to rename. Newfilename specifies the new document name.

FTP > rmdir deletes the remote directory.

Format: rmdir directory

Description: directory specifies the name of the remote directory to delete.

FTP > send copies the local document to the remote computer using the current document transfer type. Send is the same as put.

Format: send local-file [remote-file]

Description: local-file specifies the local document to copy. 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 state of connections and transitions for ftp command parameters in linux.

FTP > trace translation packet tracking. Trace displays the route for each packet when it runs the ftp command parameter command in linux.

FTP > type configures or displays the document delivery type.

Format: type [type-name]

Description: type-name specifies the document transfer type. The default configuration 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 specifies the user name used to log in to the remote computer. Password specifies the password for the user-name. If not specified, but must be specified, the ftp command parameter in linux prompts for a password.

Account specifies the account under which to log in to the remote computer. If account is not specified, but needs to be specified, the ftp command parameter in linux prompts you for an account.

FTP > verbose converts the verbose schema. If on, any ftp command parameter response in linux will be displayed. After the document transfer is complete, statistics related to the transmission efficiency will be displayed at the same time. Verbose is turned on by default.

At this point, I believe you have a deeper understanding of "the use of ftp command parameters in linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report