Linux ftp command parameter collection and examples (1)

Source: Internet
Author: User

Linux ftp command parameters are frequently used. Because it is almost the most frequently used command on the Internet. Therefore, it is very important to understand how to use this command, because a large number of internal commands of linux ftp command parameters are encountered in both DOS and UNIX operating systems, familiar with and flexible application of internal commands of linux ftp command parameters can greatly facilitate users. For users who are currently on dial-up, if the ISP provides shell, nohup can be used, ftp will be the most cost-effective method for download.

The command line format of linux ftp command parameters is: ftp-v-d-I-n-g [host name]

-V displays all the response information of the remote server 。

-D. Use the debugging method 。

-N restrict ftp automatic logon, that is, the. netrc file is not used 。

-G cancels the global file name 。

The linux ftp command parameters use the following internal commands (brackets indicate optional ):

1 .! [Cmd [args] execute Interactive shell and exit on the local machine to return to the ftp environment, as shown in! Ls *. zip 。

2. ¥ macro-ame [args]: Execute the macro definition macro-name 。

3. account [password] provides the supplemental password required to successfully log on to the remote system and access system resources. 4. appendlocal-file [remote-file]: append 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 is transmitted in ascii format 。

6. After each command is executed, the computer rings once 。

7. bin transfers binary files 。

8. bye exits the linux ftp command parameter session process 。

9. When mget is used in case, convert uppercase letters in the remote host file name to lowercase letters. 10.cd remote-dir enters the remote host directory 。

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

12. chmod modefile-name: Set the file-name access mode of the remote host file to mode, for example, chmod 777 a. out 。

13. close interrupts the linux ftp command parameter session with the remote server (corresponding to open )。

14. When cr transfers a file using asscii, it will convert the carriage return line into a return line 。

15. delete remote-file: delete the remote host file 。

16. debug [debug-value] sets the debugging mode. Each Command sent to the remote host is displayed, for example, debup3. If it is set to 0, the debug is canceled 。

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

18. disconnection is the same as close 。

19. form format sets the file transmission mode to format. The default mode is file 。

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

21. glob sets the extension of the mdelete, mget, and mput file names, which is the same as the-g parameter of the command line 。

22. A hash symbol (#) is displayed for every 1024 bytes of hash transmitted (#)。

23. help [cmd] displays the help information of the ftp Internal Command cmd, such as help get 。

24. idle [seconds] sets the Sleep timer of the remote server to [seconds] seconds. 25. image sets the binary transmission mode (the same as binary)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.