Use the DOS command to upload files

Source: Internet
Author: User
Tags ftp commands

Author: xiaoyuge
Many cainiao friends are unable to upload the updated home page files to the server because they do not have CuteFTP or other upload tools in Internet cafes. It takes time and effort to download a CuteFTP software. After all, on the internet, anyone can understand the profound meaning of "Time is money. Now let me teach you how to update the file by typing a few simple FTP commands.

Assume that the personal homepage account information on the Chinese Web server is:

FTP Server: home4u.at.china.com

User: xiaoyuge

Password: abc123

Now let's open the Windows Start Menu, execute the "run" command, enter the ftp command in the dialog box, and press the "OK" button to execute.


At this time, the system will switch to the DOS window and a prompt will appear.

Ftp>


Now let's enter the command to connect to the FTP server:

Ftp> open home4u.at.china.com (Press ENTER)

Wait a moment, and the screen prompts that the connection is successful:

Ftp> connected to home4u.china.com (Press ENTER)

Next, the server will ask you about your username and password, enter xiaoyuge and abc123 respectively, and wait until the authentication passes.

Next, go to the question and start uploading files. For example, if you want to upload a: index.html to the root directory of the server, you can enter the following:

Ftp> put a: index.html (Press ENTER)

When the screen prompts that the transmission is complete, you can run the following command to view the information:

Ftp> dir (Press ENTER)

(Note: no one is really stupid enough to directly transfer the: disk to the server, right? Of course, it is first copied to the hard disk before uploading. ^_^)

I just talked about uploading. Now let's take a look at the download. To upload all the .jpg files in the imagesdirectory of the server to the local machine, follow these instructions:

Ftp> cd images (Press ENTER) [Note: Go to the images Directory]

Ftp> mget *. jpg

After uploading and downloading are completed, you can run bye to interrupt the connection.

Ftp> bye (Press ENTER)

Finally, to make it easier for you to remember, summarize the commonly used FTP commands:

1. open: connect to the server;

2. send (put): upload a file;

3. get: download an object;

4. mget: Download multiple files;

5. cd: Switch the directory;

6. dir: view the files in the current directory;

7. del: delete an object;

8. bye: the connection to the server is interrupted.

Although the command is simple, it may not be easy to use. In addition, it may be useful when it comes to "Saving troops for thousands of days and using troops for a while. For more information, go to ftp> help (Press ENTER) to view the command set.
Many people always ask me how to be a hacker? What do hackers need to learn? Is DOS outdated ?? This is the answer.

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.