Use cmd to upload files over FTP and upload files over FTP

Source: Internet
Author: User
Tags ftp file

Use cmd to upload files over FTP and upload files over FTP

Always useFileZillaThis tool Performs related FTP operations, and after a version upgrade, it finds that it is not very easy to use, the connection is always lost, and then it cannot be connected completely.

After switching to a Web-based FTP tool for a while, the page often fails to be opened.

One day I suddenly rememberedCmdThere is an ftp command in it, so I want to try to see if I don't need any other tools, so I can do something through the command line. With the help of the help Command, the result is quite smooth to upload files.

Although it is very simple, we should make a record for the emergency.

 

-- Using cmd to upload FTP files is as follows:

 

  Step 1

Open the command line window and enter the command:

  Ftp xxx. xxxx. xxx(The FTP address to connect)

Press enter.

The output is as follows:

  

Indicates that you have accessed the specified FTP address and are waiting for logon. NOTE: If no command is sent within 60 seconds, the connection is automatically disconnected.

 

  Step 2

  Enter the account and press Enter.

Enter the password and press enter as prompted. (The screen characters are invisible when you type the password)

  After logging on successfully, you will get the output shown in:

  

The system prompts that the root directory has been entered.

  

  Step 3

  If you know the path of the file to be uploaded, useCdCommand to enter the specified directory; otherwiseDirRetrieve the directory list, and then combineCdStep by step.

  

  Step 4

  Enter the directory of the file to be uploaded and enter the following command:

  Send

Press enter.

The output shown in is as follows:

  

Enter the full path File Name of the local file to be uploaded, and press Enter. (If the file path contains a directory name with spaces, the entire input must be included in a pair of double quotation marks)

The output shown in is as follows:

  

Press enter.

  

  Step 5

  If the operation is successful, the output shown in is displayed:

  

The file is successfully uploaded. (If a file with the same name is overwritten, it will be added directly without the same name)

  

  Step 6

  Enter the following command:

  Quit

  Press enter.

This operation is now complete.

 

-- The above is the useCmdCommand to complete the FTP file upload operation.

 

  P.S.

  If you enter a command during the preceding operation, the output is shown in:

  

Indicates thatSend command(Typing characters on the interface is not regarded as active.) The connection is automatically closed. It is also humorously prompted that you need to type it again soon :)

In this case, you need to start from step 1 and perform the operation again.

 

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.