The ftp command is one of the most frequent commands that Internet users use, whether using FTP under DOS or UNIX operating system, will encounter a lot of FTP internal commands. Familiar with and flexibly applying the internal order of FTP, it can greatly facilitate the user, and receive a half-time.
The command line format of FTP is: ftp -v -d -i -n -g [host name], where
-v Displays all response information of the remote server;
-n limited TP automatic login, ie not used;
-i ETRC file;
-d use debugging mode;
-g cancels the global file name.
The internal command used by FTP is as follows (bracket indicating option):
1.! [Cmd [args]]: Performs interaction shell in the local machine, exit returns to the FTP environment, such as:! Ls * .zip.
2. $ macro-ame [args]: Perform a macro definition macro-name.
3. Acount [Password]: Provides the supplemental password required to access the system resource after logging in to the remote system.
4.Append local-file [remote-file]: Add local files to the remote system host. If the remote system file name is not specified, the local file name is used.
5.ASCII: Use the ASCII type to transfer mode.
6.bell: After each command is executed, the computer bells once.
7.bin: Use binary files to transfer mode.
8.BYE: Exit the FTP session process.
9.case: When using the MGET, turn the uppercase of the remote host file name to lowercase letters.
10.CD Remote-Dir: Enter the remote host directory.
11.cdup: Enter the parent directory of the remote host directory.
12.chmod mode file-name: Set the remote-name of the remote host file File-Name to Mode, such as: Chmod 777 a.out.
13.Close: Interrupt FTP session with the remote server (corresponding to Open).
14. CR: When using an ASCII mode to transfer files, convert the return line to a back.
15.Delete Remote-file: Delete Remote Host Files.
16.debug [debug-value]: Set the debug mode, display each command sent to the remote host, such as: DEB UP 3, if set to 0, indicate canceling the debug.
17.DIR [remote-dir] [local-file]: Displays the remote host directory and store the results into the local file local-file.
18.Disconnection: with Close.
19.Form Format: Sets the file transfer mode to Format, defaults to File mode.
20.Get Remote-file [local-file]: Transfer the remote host file Remote-File to local-file of the local hard drive.