-d Use debug mode.
-n Restrict ftp automatic login, that is, do not use it. Netrc file.
-g Cancels the global file name.
Ftp uses the following internal commands (where parentheses indicate options):
1.! [cmd[args]] Execute the interactive shell on the local machine and exit, returning to the ftp environment, such as! ls*。 vitality
.
2.macro-ame [args] executes the macro definition macro name.
3.account[password] provides the supplementary password needed to access system resources after successfully logging in to the remote system.
.
4. Append local-file [remote-file] Attach the local file to the remote system host, if not.
If a remote system file name is specified, the local file name is used.
5.ascii uses ascii type transmission mode.
Every time the bell executes a command, the computer will ring once.
7.bin uses binary file transfer mode.
8.bye exits the ftp session process.
9.case When using mget, the uppercase letters in the file name of the remote host are converted into lowercase letters.
10.cdremote-dir to enter the remote host directory.
1 1.cdup Enter the parent directory of the remote host directory.
12.chmod mode file name sets the access mode of the remote host file name to mod.
E, such as chmod 777a.out
13.close interrupts the ftp session with the remote server (corresponding to open).
When 14.cr uses asscii to transfer files, it will convert carriage returns to line feeds.
15. Delete the remote file Delete the remote host file.
16.debug [debug-value] sets the debugging mode and displays each command sent to the remote host, for example
Debup 3, if set to 0, means canceling debugging.
17.dir [remote-dir] [local-file] displays the remote host directory and stores the result locally.
-Documents.
18. Opening is the same as closing.
19.form format sets the file transfer mode to format, and the default is file mode.
20.getremote-file [local-file] transmits the remote file of the remote host to the local.
Local files on the hard disk.
2 1.glob sets the file extensions of mdelete, mget and mput. By default, it does not extend the file name, which is the same as life.
The -g parameter of the command line.
22.hash displays a hash symbol (#) every time it transmits 1024 bytes.
23.help[cmd] displays the help information of ftp internal command cmd, such as help get.
24.idle[seconds] sets the sleep timer of the remote server to [seconds] seconds.
25.image sets the binary transmission mode (same as binary).
26.lcd[dir] switches the local working directory to dir.
27.ls [remote-dir] [local-file] displays the remote directory remote-dir and stores it locally.
Local file.
28. The 28.macdef macro name defines a macro. When a blank line is encountered under MacDef, the macro definition ends.
29.mdelete [remote-file] deletes the remote host file.
30.mdir remote file local file is similar to dir, but multiple remote files can be specified, such as
mdir*.o.*zipoutfile .
3 1.mgetremote-files transfers multiple remote files.
32.mkdir dir-name creates a directory in a remote host.
33. The MLS remote file local file is the same as nlist, but multiple file names can be specified.
34.mode [mode-name] sets the file transfer mode to mode-name, and the default is streaming mode.
.
35. The 35.Modtime file name shows the last modification time of the remote host file.
36.mputlocal-file transfers multiple files to a remote host.
37.newerfile-name If the file name on the remote machine is modified at the same time as that on the local hard disk.
If the time is closer, the file will be retransmitted.
38. nlist [remote-dir] [local-file] displays the file list of the coexisting remote host directories.
In the local file on the local hard disk.
39.nmap[inpatternoutpattern] sets the file name mapping mechanism, so that when transmitting files, the files
Some characters in NMAP 1 2.3 [1,2]. [2,3], transmission file a 1.
A2.a3, the file name will be changed to a 1 and A2, which is especially suitable for the case that the remote host is a non-U-NIX machine.
40.ntrans[inchars[outchars]] Set the translation mechanism of file name characters, such as ntrans 1R, then
The file name LL will become RRR.
4 1.open host[port] establishes a connection to a specified ftp server, and you can specify a connection port.
42. Passively enter the passive transmission mode.
43.prompt sets the interactive prompt when transmitting multiple files.
44. The agent ftp-cmd executes an ftp command in the auxiliary control connection, which allows two connections.
An ftp server that transfers files between two servers. In order to build first, the first ftp command must be open.
Establish a connection between two servers.
45.Put local-file [remote-file] transmits the local file to the remote host.
Machine.
Pwd displays the current working directory of the remote host.
47. Exit by bye, and exit the ftp session.
48. Quotes arg 1, arg2 ... send parameters word for word to a remote ftp server, such as quote syst.
49.recv remote-file [local-file] is the same as get.
50. Reget remote-file [local-file] is similar to get, but if local-file exists, then
Resume transmission from the last interruption.
5 1.rhelp [cmd-name] asks for help from a remote host.
52.r status [file-name] If no file name is specified, the status of the remote host will be displayed. Otherwise, will be displayed.
File status.
53.rename[from][to] Change the remote host file name.
Reset Clear Answer Queue.
55. restart the tag from the specified tag, and restart get or put, such as restart.
130。
56.rmdir dir-name deletes the remote host directory.
57.runique sets the unique storage of the file name. If the file exists, add a suffix to the original file.
58. Sending local files [remote files] is the same as uploading.
The use of sending port setting port command.
60. The site arg 1, arg2 ... sends the parameters to the remote ftp host word by word as a site command.
6 1.sizefile-name displays the file size of the remote host, for example, the site is idle 7200.
Status displays the current ftp status.
63.struct [struct-name] sets the file transfer structure to the struct-name used by default.
River structure