Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the FTP commands under DOS

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "what are the FTP commands under DOS". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

FTP command is one of the most frequently used commands for Internet users. Whether you use FTP under DOS or UNIX operating system, you will encounter a large number of FTP internal commands. Familiar with and flexible application of FTP internal commands can greatly facilitate users. For current dial-up users, if ISP provides shell to use nohup, then ftp will be your most economical way to use download. The command line format of ftp is: ftp-v-d-I-n-g [hostname]

-v displays all response information for the remote server.

-d uses debug mode.

-n restrict automatic login of ftp, that is, do not use .netrc files.

-g cancels the global file name.

The internal commands used by ftp are as follows (where parentheses indicate optional):

1! [cmd [ARGs] executes interactive shell in the local machine, and exit returns to the ftp environment, such as! ls*.zip.

2. Macro-ame [args] executes the macro definition macro-name.

3.account [password] provides additional passwords required to access system resources after a successful login to the remote system.

4.appendlocal-file [remote-file] appends local files to the remote system host, or uses the local file name if the remote system file name is not specified.

5.ascii uses ascii type transport.

6.bell the computer rings once after each command is executed.

7.bin uses binary file transfer.

8.bye exits the ftp session process.

nine. Case converts uppercase to lowercase letters in the remote host file name when using mget.

10.cd remote-dir enters the remote host directory.

11.cdup enters the parent directory of the remote host directory.

12.chmod modefile-name sets the access method of the remote host file file-name to mode, such as chmod 777 a.out.

13.close interrupts the ftp session with the remote server (corresponding to open).

When 14.cr transfers files in asscii mode, it converts carriage return line feeds to return lines.

15.delete remote-file deletes the remote host file.

16.debug [debug-value] sets the debug mode to display every command sent to the remote host, such as debup3. Setting it to 0 means canceling debug.

17.dir [remote-dir] [local-file] displays the remote host directory and stores the results in local-file.

18.disconnection is identical with close.

19.form format sets the file transfer mode to format and defaults to file mode.

20.getremote-file [local-file] transfers the file remote-file of the remote host to the local-file of the local hard disk.

21.glob sets the file name extension for mdelete, mget, and mput. By default, the file name is not extended, which is the same as the-g argument on the command line.

22.hash displays a hash symbol (#) for every 1024 bytes transferred.

23.help [cmd] displays help information for the ftp internal command cmd, such as help get.

24.idle [seconds] sets the sleep timer for the remote server to [seconds] seconds.

25.image sets the binary transmission mode (same as binary)

26.lcd [dir] changes the local working directory to dir.

27.ls [remote-dir] [local-file] displays the remote directory remote-dir and stores it in the local local-file.

28.macdef macro-name defines a macro that ends when a blank line under macdef is encountered.

29.mdelete [remote-file] deletes the remote host file.

30.mdir remote-files local-file is similar to dir, but can specify multiple remote files, such as mdir*.o.*.zipoutfile.

31.mget remote-files transfers multiple remote files.

32.mkdir dir-name creates a directory on the remote host.

33.mls remote-file local-file is the same as nlist, but you can specify more than one file name.

34.mode [mode-name] sets the file transfer mode to mode-name and defaults to stream mode.

35.modtime file-name displays the last modification time of the remote host file.

36.mput local-file transfers multiple files to a remote host.

37.newerfile-name if the modification time of the file-name on the remote machine is closer than that of the file with the same name on the local hard disk, the file is retransmitted.

38.nlist [remote-dir] [local-file] displays a list of files in the remote host directory and stores it in the local-file of the local hard disk.

39.nmap [inpatternoutpattern] sets up the file name mapping mechanism, so that when a file is transferred, some characters in the file are converted to each other, such as nmap ¥1. ¥2. ¥3 [¥1, ¥2]. [¥2, ¥3], then the file name changes to A1, a2 when the file a1.a2.a3 is transferred. This command is especially suitable for cases where the remote host is a non-U-Nix machine.

40.n transfer [outchars] set file name%

41.open host [port] establishes a specified ftp server connection and can specify a connection port. forty-two。

Passive enters passive transmission mode.

43.prompt sets interactive prompts for multiple file transfers.

In the secondary control connection, 44.proxyftp-cmd executes a ftp command that allows you to connect two

Ftp servers to transfer files between two servers. The first ftp command must be open to build the

Establish a connection between two servers.

45.put local-file [remote-file] transfers the local file local-file to the remote host

Machine.

46.pwd displays the current working directory of the remote host.

47.quit and bye, exit the ftp session.

48.quote arg1,arg2... Send parameters verbatim to a remote ftp server, such as quote syst.

49.recv remote-file [local-file] is the same as get.

50.regetremote-file [local-file] is similar to get, but if local-file exists, then

Resume transmission from the last transmission interruption.

51.rhelp [cmd-name] requests help from a remote host.

52.rstatus [file-name] if no file name is specified, the status of the remote host is displayed, otherwise

File status.

53.rename [from] [to] changes the remote host file name. 54.reset clears the answer queue

.

55.restart marker restart get or put, such as restart, from the specified flag marker

one hundred and thirty.

56.rmdir dir-name deletes the remote host directory.

57.runique sets the unique storage of the file name, and if the file exists, add a suffix to the original file.

58.send local-file [remote-file] is the same as put.

59.sendport sets the use of the PORT command.

60.site arg1,arg2... Send the parameters verbatim to the remote ftp host as a SITE command.

61.size file-name displays the remote host file size, such as site idle 7200.

62.status displays the current ftp status.

63.struct [struct-name] sets the file transfer structure to struct-name, which is used by default

Stream structure.

64.sunique sets the remote host file name store to unique (corresponding to runique).

65.system displays the operating system type of the remote host.

66.tenex sets the file transfer type to the type required by the TENEX machine.

67.tick sets the byte counter for transmission.

68.trace sets up packet tracking.

69.type [type-name] sets the file transfer type to type-name and defaults to ascii, such as typ

Ebinary, set the binary transmission mode.

70.umask [newmask] sets the default umask of the remote server to newmask, such as umask 3.

71.useruser-name [password] [account] indicates his identity to the remote host and needs to

Password

You must enter a password, such as user anonymous my@email.

72.verbose is the same as the-v parameter of the command line, that is, set the detailed reporting mode, all the responses of the ftp server.

Will be displayed to the user, default to on.

73. [cmd] is the same as help.

So how do you use these commands to improve efficiency? Let me give you an example of how to use fttp to implement

Download in the background, suppose your ISP provides you with shell and you can use nohup, you want to use fttp.downlo

Ad.com/pub/internet/ downloads a 30m program aaa.zip with the following specific steps:

1. Make a file such as aaa1 with notepad as follows: open ftp.dwonload.com user anonymous [email] zyz@ cenpok.net [/ email] cd / pub/internet/ I get aaa.zip close bye

two。 Dial up and log in to your ISP. Log in to shell with telnet or netterm, which is usually bbs~/ in your home subdirectory

3. Use fttp to upload aaa1 to your subdirectory on the ISP server.

4. Execute nohup fttp-invd aaa2& so that the process is placed in the background of the ISP server, and if you want to know what's going on, you can more aaa2 to know what's going on. At this time you can disconnect or do something else, it is estimated that the time has come (time = 30M/ (33.6K/9) s) to dial up, more aaa2 if it shows that the successful download of aaa.zip means that aaa.zip has been downloaded to the ISP server, you pull back from the ISP server is quite peer-to-peer, remember to del your file (aaa.zip) after the download is completed, so as not to waste ISP resources, it will turn off shell.

This is the end of the content of "what are the FTP commands under DOS"? thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report