Summary 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 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. FTP command line format is: ftp -v -d -i -n -g [hostname], where -V displays all response information of the remote server; -D uses debugging mode; -i limit FTP automatic login, ie Use; -n ETRC file; -g cancels the global file name. The internal command used by FTP is as follows (bracket represents optional option): 1.! [Cmd [args]]: Perform 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. Account [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: The computer rings once after each command is executed. 7. bin: Use binary files to transfer mode. 8. BYE: Exit the FTP session process. 9. Case: When using 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 way remote-name of the remote host file 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 carriage return 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 local-file. 18. Disconnection: With Close. 19. Form Format: Sets the file transfer mode to Format, defaults to File. 20. Get Remote-file [local-file]: Boot the file Remote-File of the remote host 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 expanded. 22. Hash: An Hash symbol (#) is displayed per transfer. 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 blank line 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: Retransmission the file if the modification time of the remote-name in the remote machine is closer to the local hard drive. 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. $ 2. [$ 1, $ 2]. [$ 2, $ 3], then 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]]: Sets the translation mechanism for the file name character, 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, execute an FTP command, which allows two FTP servers to transfer 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 the parameters to the remote FTP server, such as quote system. 49. RECV Remote-file [local-file]: with the GET. 50. Remet Remote-file [local-file]: Similar to GET, but if local-file exists, it is submitted from the last transfer interrupt.