The ftp command is one of the most frequent commands using the Internet users, familiar with and flexibly applying the internal commands of FTP, which can greatly facilitate the user and receive a half-time.
If you want to learn to use the background FTP download, you must learn FTP instructions.
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 Limits automatic login of FTP, ie not used ;.n 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 the ASSCII mode to transfer the file, convert the return line to the 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]: Display the remote host directory and store the results into the local file
18.Disconnection: with Close.
19.Form Format: Sets the file transfer mode to Format, defaults to File mode.