FTP is software used to upload or download software on the Internet. Here is the command line mode FTP software
Introduction.
The ftp command is one of the most frequent commands that Internet users use, whether in DOS or UNIX operation system
Using FTP, you will encounter a lot of FTP internal commands. Familiar with and flexibly apply the internal command of FTP,
With great convenience, it is the same as 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 Limits an 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]]: Perform interaction shell in the local machine, exit returns to the FTP environment, such as:! Ls * .zi
p.
2. $ macro-ame [args]: Perform a macro definition macro-name.
3. Acount [Password]: Provide the replenishment required to access the system resources after logging in to the remote system
.
4.Append local-file [remote-file]: Add local files to the remote system host, if not
The remote system file name is used to use the local file name.
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 way the remote host file file-name is set 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, denotes the debug.
17.DIR [remote-dir] [local-file]: Display the remote host directory and store the result into this field 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 file remote-file of the remote host to local hard
Local-file of the disk.
21.glob: Sets the file name extension of MDelete, MGET, MPUT, and does not extend the file name, the same life is not expanded.
The -g parameter of the order.
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]: Display the remote directory Remote-Dir and store the 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: If the modification time of File-Name in the remote machine is more than the local hard drive
The time is closer, then retransmit the file.
38.NList [Remote-Dir] [local-file]: Displays the file list of the remote host directory, and store this
Local-file of the land hard drive.
39.NMAP [Inpattern Outpattern]: Set the file name mapping mechanism, make the file transmission, text
Some characters in the pieces are converted to each other.
Such as: NMAP $ 1. $ 3 [$ 1, $ 2]. [$ 2, $ 3], when transferring files a1.a2.a3, file names become A
1, A2. This command is especially suitable for the case where the remote host is non-Unix machine.
40.ntrans [inchars]]: Set the translation mechanism for file name characters, such as NTRANS 1R,
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, this command allows connection to two
A FTP server to transfer files between two servers. The first FTP command must be Open, first
Establish two connections between two servers.
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 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 state of the remote host is displayed, otherwise the text is displayed.
Part of the status.
53.Rename [from] [to] Change the remote host file name.
54.Reset: Clear the answer queue.
55.Restart Marker: From the specified flag Marker, start GET or PUT, such as: RESTAR
T 130.
56.Rmdir Dir-name: Delete the remote host directory.
57.Runique: Set the file name unique storage, if the file exists, then 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 ST when default
REAM structure.
64. Sunique: Set the remote host file name storage to unique (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]: Set the file transfer type to type-name, default as ASCII, such as: TYP
e binary, set binary transmission.
70.umask [newmask]: Set the default umask of the remote server to NewMask, such as Umask 3.
71.user user-name [password] [account]: indicates that your identity is indicated by the remote host, and you need your mouth.
When ordering, you must enter a password, such as user anonymous my @ email.
72.verbose: The -v parameter with the command line is set, that is, set a detailed report, all responses to the FTP server
Will be displayed to the user, default is ON.
73.?[cmd]: Tong Help.