![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 20:12 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS媒体世界 & 网络技术 (多媒体室) » Complete Collection of FTP Commands (Reprinted) |
| Printable Version 6,565 / 9 |
| Floor1 nodkiller | Posted 2002-10-31 00:00 |
| 中级用户 Posts 19 Credits 224 | |
|
FTP Command Set
FTP commands are one of the most frequently used commands by Internet users. Familiarizing and flexibly applying FTP internal commands can greatly facilitate users and achieve twice the result with half the effort. If you want to learn to use background FTP download, then you must learn FTP commands. The command line format of FTP is: ftp -v -d -i -n -g , where -v displays all response information of the remote server; -n restricts automatic login of ftp, that is, does not use the.netrc file; -d uses the debugging mode; -g cancels global file names. The internal commands used by FTP are as follows (brackets indicate optional items): 1.! :Execute the macro definition macro-name. 3.account:Provide the supplementary password required to access system resources after successfully logging in to the remote system. 4.append local-file:Append the local file 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 transmission method. 6.bell:The computer rings once after each command is executed. 7.bin:Use the binary file transmission method. 8.bye:Exit the ftp session process. 9.case:When using mget, convert the uppercase letters in 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 access method of the remote host file file-name to mode, for example: chmod 777 a.out. 13.close:Interrupt the ftp session with the remote server (corresponding to open). 14.cr:When using the asscii method to transfer files, convert the carriage return and line feed to line feed. 15.delete remote-file:Delete the remote host file. 16.debug:Set the debugging mode, display each command sent to the remote host, for example: deb up 3. If set to 0, it means cancel debug. 17.dir:Display the remote host directory and store the result in the local file 18.disconnection:Same as close. 19.form format:Set the file transmission method to format, the default is file method. 20.get remote-file:Transfer the file remote-file of the remote host to the local-file of the local hard disk. 21.glob:Set the file name extension of mdelete, mget, mput. By default, the file name is not extended, which is the same as the -g parameter of the command line. 22.hash:Display a hash symbol (#) every time 1024 bytes are transferred. 23.help:Display the help information of the ftp internal command cmd, for example: help get. 24.idle:Set the dormancy timer of the remote server to seconds. 25.image:Set the binary transmission method (same as binary). 26.lcd:Switch the local working directory to dir. 27.ls:Display the remote directory remote-dir and store it in the local file local-file. 28.macdef macro-name:Define a macro, and the macro definition ends when an empty line under macdef is encountered. 29.mdelete:Delete the remote host file. 30.mdir remote-files local-file:Similar to dir, but multiple remote files can be specified, for example: mdir *.o.*.zipoutfile. 31.mget remote-files:Transfer multiple remote files. 32.mkdir dir-name:Create a directory on the remote host. 33.mls remote-file local-file:Same as nlist, but multiple file names can be specified. 34.mode:Set the file transmission method to modename, the default is stream method. 35.modtime file-name:Display 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 closer than the time of the same name file on the local hard disk, then retransmit the file. 38.nlist:Display the file list of the remote host directory and store it in the local-file of the local hard disk. 39.nmap:Set the file name mapping mechanism, so that some characters in the file are converted to each other during file transmission, for example: nmap $1.$2.$3., then when transferring the file a1.a2.a3, the file name becomes a1, a2. This command is especially suitable for the case where the remote host is a non-UNIX machine. 40.ntrans :Establish a connection with the specified ftp server, and the connection port can be specified. 42.passive:Enter the passive transmission mode. 43.prompt:Set the interactive prompt when transferring multiple files. 44.proxy ftp-cmd:Execute an ftp command in the secondary control connection. This command allows connecting two ftp servers to transfer files between the two servers. The first ftp command must be open to first establish a connection between the two servers. 45.put local-file:Transfer the local file local-file to the remote host. 46.pwd:Display the current working directory of the remote host. 47.quit:Same as bye, exit the ftp session. 48.quote arg1, arg2...:Send the parameters to the remote ftp server word by word, for example: quote syst. 49.recv remote-file:Same as get. 50.reget remote-file:Similar to get, but if local-file exists, continue transmission from the last interruption. 51.rhelp:Request to obtain the help of the remote host. 52.rstatus:If the file name is not specified, display the status of the remote host, otherwise display the file status. 53.rename:Change the file name of the remote host. 54.reset:Clear the answer queue. 55.restart marker:Restart get or put from the specified flag marker, for example: restart 130. 56.rmdir dir-name:Delete the remote host directory. 57.runique:Set file name unique storage. If the file exists, add suffixes.1, .2, etc. after the original file. 58.send local-file:Same as put. 59.sendport:Set the use of the PORT command. 60.site arg1, arg2...:Send the parameters to the remote ftp host as the SITE command word by word. 61.size file-name:Display the size of the remote host file, for example: site idle 7200. 62.status:Display the current ftp status. 63.struct:Set the file transmission structure to struct-name. By default, the stream structure is used. 64.sunique:Set the remote host file name storage to unique (corresponding to runique). 65.system:Display the operating system type of the remote host. 66.tenex:Set the file transmission type to the type required by the TENEX machine. 67.tick:Set the byte counter during transmission. 68.trace:Set packet tracing. 69.type:Set the file transmission type to type-name. The default is ascii. For example: type binary, set the binary transmission method. 70.umask:Set the default umask of the remote server to newmask, for example: umask 3 71.user user-name:Indicate your identity to the remote host. When a password is required, you must enter the password, for example: user anonymous my@email. 72.verbose:Same as the -v parameter of the command line, that is, set the detailed report mode. All responses of the ftp server will be displayed to the user. The default is on. 73.?:Same as help. |
|
| Floor2 Wengier | Posted 2002-10-31 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Is it the one in the "DOS Articles" section?
|
|
| Floor3 nodkiller | Posted 2002-10-31 00:00 |
| 中级用户 Posts 19 Credits 224 | |
|
Some internal commands have been added ^_^
|
|
| Floor4 ningshao0518 | Posted 2003-11-26 00:00 |
| 初级用户 Posts 2 Credits 104 | |
|
Oh. In the future, please produce more technical articles.
|
|
| Floor5 steersman | Posted 2003-12-19 00:00 |
| 初级用户 Posts 2 Credits 106 | |
|
Hope that experts can post more examples so that newcomers can learn!
|
|
| Floor6 zmy | Posted 2004-02-04 00:00 |
| 初级用户 Posts 7 Credits 130 | |
|
Very valuable
|
|
| Floor7 DosForXp | Posted 2010-02-10 10:59 |
| 新手上路 Posts 13 Credits 19 | |
|
Let me let out a coarse word: Damn, I forgot this command, I'm angry, I regret, I destroy
|
|
| Floor8 liuchaooe | Posted 2010-04-06 18:24 |
| 初级用户 Posts 14 Credits 26 From 河南 | |
|
Thanks to the LZ, I've learned.
|
|
| Floor9 zaixinxiangnian | Posted 2010-04-06 20:04 |
| 初级用户 Posts 106 Credits 151 From 河南省 | |
|
steersman is right. When giving commands, add a few more examples. Novices can easily understand, grasp, and learn.
|
|
| Floor10 kandy | Posted 2010-04-29 14:05 |
| 初级用户 Posts 10 Credits 22 | |
|
Very useful!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |