FTP command line format

xiaoxiao2021-03-06  130

From: LinuxSir.org is very grateful to the command line format of the Javalee Big Brother FTP: ftp -v -d -i -n -g [hostname], where -V displays all response information of the remote server; -N Limit FTP automatic login , Ie not used; .n ETRC file; -d uses debugging mode; -g cancels the global file name. The internal command used by FTP is as follows (bracket represents optional): 1.! [Cmd [args]]: Perform 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 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 the case where the remote host is non-Unix 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 parameters to remote FTP servers, such as quote syst. 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.

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

New Post(0)