FTP command

xiaoxiao2021-04-09  482

The command line format of FTP is: ftp -v -d -i -n -g [hostname] -V Displays all response information of the remote server. -D use debugging mode. -N Limits an automatic login of FTP, ie not .NETRC files. -G cancels the global file name. The internal command used by FTP is as follows (where bracket represents optional): 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 supplementary password required to access the system resource after logging in to the remote system. 4.AppendLocal-file [remote-file] Add a local file to a remote system host. If the remote system file name is not specified, the local file name is used. 5.ASCII uses the ASCII type transmission mode. 6. Bell Each command is executed, the computer rings once. 7.bin uses binary files. 8. Bye exits the FTP session process. 9.case transfers the uppercase of the remote host file name to lowercase letters 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 way remote-name to Mode, such as Chmod 777 A.out. 13.Close interrupt FTP session with the remote server (corresponding to Open). 14. When CR transmits a file using the ASSCII mode, convert the return line to a back. 15. Delete Remote-file Deletes the remote host file. 16.Debug [debug-value] Setup debug mode, display each command sent to the remote host, such as DEBUP3, if set to 0, indicates canceling the debug. 17.DIR [remote-dir] [local-file] Displays the remote host directory and stores the result to local-file. 18.Disconnection with a Close. 19.Form Format Sets the file transfer mode to Format, defaults to File mode. 20.GetRemote-file [local-file] Transfers 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 expanded. 22. Hash is transmitted 1024 bytes per transmitted, showing an HASH symbol (#). 23.Help [cmd] Displays help information for the FTP internal command CMD, such as Help Get. 24.idle [Seconds] Sets the sleep timer of the remote server to [Seconds] seconds. 25. Setting the binary transmission 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 local-file. 28. MacDef Macro-Name Defines a macro, when you encounter a blank line under MacDef, the macro definition ends. 29.mdelete [remote-file] Deletes remote host files. 30. Mdir Remote-Files Local-file is similar to DIR, but multiple remote files can be specified, such as mdir * .o. *. Zipoutfile. 31.Mget Remote-files Transport 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 [Mode-Name] sets the file transfer mode to Mode-name, default is a Stream mode. 35.Modtime file-name Displays the final modification time of the remote host file. 36. MPUT local-file transfer multiple files to the remote host. 37.NewerFile-name retransmit the file 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 [InPatternOutPattern] Set the file name mapping mechanism, make the file transfer, some characters in the file mutual conversion, such as NMAP ¥ 1. ¥ 2. ¥ 3 [¥ 1, ¥ 2]. [¥ 2, ¥ 3 ], When the files A1 .a2.a3 are transmitted, the file name becomes A1, A2, which is especially suitable for the case where the remote host is non-U-NIX machine. 40.ntrans [incharsion] sets the translation mechanism for file name characters, such as NTRANS1R, the file name LL L will become RRR. 41.Open Host [Port] establishes the specified FTP server connection to specify the connection port. 42. Passive enters the passive transmission method. 43.Prompt Sets the interaction tips when multiple file transfer. 44.ProxyFTP-CMD In the secondary control connection, execute an FTP command, which allows two FTP servers to transfer 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 parameters to remote FTP servers, such as Quote Syst. 49.Recv remote-file [local-file] with get. 50.RegetRemote-file [local-file] is similar to get, but if local-file exists, it is submitted from the last transfer. 51.Rhelp [cmd-name] requests 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 queue. 55.Restart Marker Restart GET or PUT from the specified flag Marker, such as Restart 130. 56.Rmdir Dir-Name Deletes the remote host directory. 57.Runique Settings File Name Unique Store, if the file exists, then add the suffix after the original file. 58.send local-file [remote-file] with the PUT. 59.Sendport sets the use of the port command. 60.Site Arg1, Arg2 ... Send the parameters as the site command to the remote FTP host. 61.Size file-name Displays the remote host file size, such as Site Idle 7200. 62.Status displays the current FTP state.

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

New Post(0)