FTP command

xiaoxiao2021-04-08  6

CMD FTP User Command Complete Works

Author: siyizhu Date: 2006-02-02

font size:

small

in

Big

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.

code

FTP command line format is: ftp -v -d -i -n -g [host name]

-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):

Reference content

1.! [Cmd [args]]: Performs 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. Acount [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: 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 remote-name of the remote host file File-Name 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, 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 mode.

20.Get Remote-file [local-file]: Transfer the remote host file Remote-File 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 extended.

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] Displays the remote directory Remote-Dir and stores 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: This file is retransmitted if the modification time of the file-name in the remote machine is closer to the same name file with the local hard disk.

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. $ 3 [$ 1, $ 2]. [$ 2, $ 3], transfer When files A1.A2.A3, the file name is changed to A1, A2. This command is especially suitable for remote hosts as non-UNIX

The case of the machine.

40.ntrans [InChars]]: Sets the translation mechanism for file name characters, 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, an FTP command is executed, which allows two FTP servers to transmit 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 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 status of the remote host is displayed, otherwise the file status is displayed.

53.Rename [from] [to] Change the remote host file name.

54.Reset: Clear the answer queue.

55.Restart Marker: From the specified flag Marker, restart GET or PUT, such as: Restart 130.

56.Rmdir Dir-name: Delete the remote host directory.

57.Runique: Sets the file name unique storage. If the file exists, add the suffix ..1, .2, etc. after the original file...

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 the Stream structure when default.

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]: Setting the file transfer type to type-name, default is ASCII, such as: Type Binary, set binary transfer mode.

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 must enter a password, such as: user anonymous my @ email.

72.verbose: The -v parameter of the command line, that is, set a detailed report, and all responses to the FTP server will be displayed to the user, default is ON.

73.?[cmd]: Tong Help.

转载请注明原文地址: http://www.9cbs.com/read-132820.html

New Post(0)