Internal commands for FTP

Source: Internet
Author: User
Tags command line exit in ftp ftp commands hash parent directory

FTP commands are one of the most frequently used commands for Internet users, and a large number of FTP internal commands are encountered, whether using FTP under a DOS or UNIX operating system. Familiar with and flexible application of FTP internal command, can greatly facilitate users, and received a multiplier effect.

The FTP command line format 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 used;

. NETRC documents;

-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>: Performing 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 additional port required to access system resources after successful login to the remote system

Make.

4.appendlocal-file[remote-file]: Append the local file to the remote system host, if

The remote system file name is not specified, the local file name is used.

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.cdremote-dir: Enter the remote host directory.

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

12.chmodmodefile-name: Set remote host file File-name access mode to MO

De, such as: Chmod777a.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.deleteremote-file: Deletes the remote host file.

16.debug[debug-value]: Set debug mode, display every command sent to remote host

, such as: Debup3, if set to 0, means cancel Debug.

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

File Local-file.

18.disconnection: Same as close.

19.formformat: File transfer mode is set to format, default to file mode.

20.getremote-file[local-file]: Send the remote host file Remote-file to this

The local-file of the hard disk.

21.glob: Sets the filename extension for mdelete,mget,mput, and does not extend the filename by default.

The-g parameter with the command line.

22.hash: 1024 bytes per transmission, displaying a hash symbol (#).

23.help[cmd]: Display the FTP internal command cmd Help information, such as: Helpget.

24.idle[seconds]: Sets the remote server's hibernate timer to [seconds] seconds.

25.image: Set binary transmission mode (same binary).

26.LCD[DIR]: Switches the local working directory to dir.

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.