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 [hostname], (where -V displays all response information of the remote server; -N limits the automatic login of the FTP, ie not used; .n ETRC File; -d uses debugging mode; -g cancels the global file name.) The internal command used by FTP is as follows: 1.! [Cmd [args>: Perform interaction shell in the local machine, EXIT returned FTP environment, such as! ls * .zip2. $ macro-ame [args]: Perform 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]: Displays 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. 20.Get Remote-file [local-file]: Transfer the remote host file Remote-File to local-file of the local hard drive. 21.Glob: Sets the file name extension of MDelete, MGET, MPUT, and does not extend the file name, the -g parameter with the command line is not extended. 22.hash: Each transfer is 1024 bytes, showing a Hash symbol (#). 23.Help [cmd]: Displays help information for the FTP internal command CMD, such as Help Get. 24.idle [seconds]: Set the sleep timer of the remote server to [Seconds] seconds. 25. IMAGE: Sets the binary transfer mode (with binary). 26.lcd [dir]: Switch the local working directory to DIR.
27.ls [remote-dir] [local-file] Displays the remote directory Remote-Dir and stores local file local-file. 28.MACDEF MACRO-NAME: Defines a macro, when you encounter a blanket under MacDef, the macro definition ends. 29.mdelete [remote-file]: Delete remote host files. 30. Mdir Remote-files local-file: Similar to DIR, but can specify multiple remote files such as: mdir * .o. *. Zipoutfile. 31.MGET Remote-files: Transports multiple remote files. 32.mkdir Dir-name: Built a directory in the remote host. 33.mls Remote-file local-file: With nlist, but can specify multiple file names. 34.Mode [MODENAME]: Set file transfer mode to Modename, default is a Stream mode. 35.Modtime file-name: Displays the last modification time of the remote host file. 36. MPUT local-file: Transfer multiple files to the remote host. 37.NEWER FILE-NAME: This file is retransmitted if the modification time of the file-name in the remote machine is closer to the same name file with the local hard disk. 38.nlist [remote-dir] [local-file]: Displays the file list of the remote host directory and stores local-file of the local hard drive. 39.NMAP [Inpattern Outpattern]: Sets the file name mapping mechanism to transfer some characters in the file to each other, such as: NMAP $ 1. $ 3 [$ 1, $ 2]. [$ 2, $ 3], transfer When files A1.A2.A3, the file name is changed to A1, A2. This command is especially suitable for the case where the remote host is non-Unix machine. 40.ntrans [Inchars [Outchars>: Sets the translation mechanism for file name characters, such as NTRANS1R, the file name LLL will become RRR. 41. Open Host [Port]: Establish a specified FTP server connection to specify the connection port. 42. Passive: Enter the passive transmission method. 43.Prompt: Sets the interaction tips when multiple file transfer. 44.Proxy FTP-CMD: In the secondary control connection, an FTP command is executed, which allows two FTP servers to transmit files between two servers. The first FTP command must be Open to build a connection between the two servers first. 45.Put local-file [remote-file]: Transfer local file local-file to the remote host. 46.PWD: Displays the current working directory of the remote host. 47.quit: With BYE, exit the FTP session. 48. quote Arg1, Arg2 ...: Send parameters to remote FTP servers, such as quote system.49.recv remote-file [local-file]: with Get. 50.Reget Remote-file [local-file]: Similar to GET, but if local-file exists, it is submitted from the last transfer. 51.rhelp [cmd-name]: Requests to get the help of the remote host. 52.RSTATUS [File-Name]: If the file name is not specified, the status of the remote host is displayed, otherwise the file status is displayed.
53.Rename [from] [to] Change the remote host file name. 54.Reset: Clear the answer queue. 55.Restart Marker: From the specified flag Marker, restart GET or PUT, such as: Restart 130.56.rmdir Dir-name: Delete the remote host directory. 57.Runique: Setting the file name only sex store, if the file exists, add the suffix after the original file. 1, .2, etc. 58.send local-file [remote-file]: with the PUT. 59.sendport: Sets the use of port commands. 60.Site Arg1, Arg2 ...: Send parameters as the site command to the remote FTP host. 61.Size File-name: Display the remote host file size, such as: site idle 7200.62.status: Displays the current FTP status. 63.Struct [struct-name]: Set the file transfer structure to struct-name, use the Stream structure when default. 64. Sunique: Set the remote host file name storage to only one (corresponding to Runique). 65.System: Displays the operating system type of the remote host. 66.Tenex: Set the file transfer type to the desired type of Tenex machine. 67.Tick: Set the byte counter when transferring. 68.Trace: Setup package tracking. 69.Type [type-name]: Setting the file transfer type to type-name, default is ASCII, such as: Type Binary, set binary transfer mode. 70.umask [newmask]: Set the default Umask of the remote server to newmask, such as: umask 371.user-name [password] [account]: indicates that your identity is indicated by the remote host, and you must enter the password. Such as: user anonymous my @ email. 72.verbose: The -v parameter of the command line, that is, set a detailed report, all responses to the FTP server will be displayed to the user, the default is ON.73.?[cmd]: Tong Help. (Author's words) this is I have a collection, I hope to help my friends. Contact me when you have time!