Let the network work with more than the classic FTP command Daquan

Source: Internet
Author: User
Tags chmod command line exit in ftp parent directory access

If you can be familiar with and flexible application of FTP internal commands, it is really more than half the effort.

The command line format for FTP is:

Ftp-v-d-i-n-g [host name], where

-V Displays all response information for the remote server;

-N Restricts automatic logon of FTP, that is, not using;. n etrc files;

-D use debugging mode;

-G cancels the global filename.

The internal commands used by FTP are as follows (the brackets indicate an option):

1.! [Cmd[args]]: Perform interactive shell,exit in the local machine back to the FTP environment, such as:!ls*.zip

2.$ Macro-ame[args]: Perform macro definition macro-name.

3.account[password]: Provides the supplemental password required to access system resources after a successful logon to the remote system.

4.append Local-file[remote-file]: Appends the local file to the remote system host and uses the local file name if no remote system file name is specified.

5.ASCII: Use ASCII type transfer mode.

6.bell: The computer rings once after each command completes.

7.bin: Use binary file transfer mode.

8.bye: Exits the FTP session process.

9.case: When using Mget, the upper case of the remote host file name is converted to lowercase letters.

10.CD Remote-dir: Access to remote host directory.

11.cdup: Enter the parent directory of the remote host directory.

12.chmod mode File-name: Sets the access mode of the remote host file File-name to mode, such as: chmod 777 a.out.

13.close: Interrupts the FTP session with the remote server (corresponding to open).

14.CR: When the file is transferred using ASSCII, the carriage return line wrap is converted to a back line.

15.delete remote-file: Deletes the remote host file.

16.debug[debug-value]: Set debug mode, display every command sent to the remote host, such as: Deb up 3, if set to 0, means cancel Debug.

17.dir[remote-dir][local-file]: Displays the remote host directory and stores the results in a local file



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.