Linux ftp command parameter Summary (1)

Source: Internet
Author: User
Tags ftp commands

In the previous article "Summary of linux ftp commands", we have introduced some linux ftp command parameters. Now let's continue to summarize. I hope to help you provide a reference.

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. Returns the response code for a single linux ftp command parameter.

Format: literal argument [...]

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

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 and the specified linux ftp command parameter server connection.

Format: open computer [port]

Description: Specifies the remote computer to connect. The IP address or computer name can be used to specify that the computer DNS or host document must be available ). If Automatic Logon is enabled by 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 you disable the message when mget and mput send any documents, the linux ftp command parameters 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.


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.