Many rookie friends have no Upload tools such as Cuteftp in the Internet cafes, which cannot pass the updated home file to the server. If you download a CUTEFTP software, it is time consuming, after all, everyone can experience the deep meaning of "time is money". Now let me teach you a trick, type a few simple FTP commands, you can complete the update of this job.
First assume that the author's personal home page 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, press the "OK" button to execute.
It will switch to the DOS window, a prompt appears
FTP>
Let us now enter the command to connect to the FTP server:
FTP> open home4u.at.china.com (Enter)
Wait a moment, the screen prompts success:
FTP> connection to home4u.china.com (Enter)
Next server asks your username and password, enter xiaoyuge and ABC123, to be authenticated.
Let's go to the topic, start uploading files, for example, we have to pass A: /Index.html to the root directory of the server, you can type:
FTP> PUT A: /INDEX.HTML (Enter)
When the screen prompts you have been transferred, you can click on the relevant command to see:
FTP> DIR (Enter)
(Note: Nobody will really be stupid to transfer A: disk Dongdong to the server? Of course, copy it to the hard disk to upload. ^ _ ^)
Just talking about uploading, now look at the download. Suppose you want to transfer all the .jpg files in the server / images directory to this unit, follow the following instructions:
FTP> CD images [Note: Go to / images "directory]
FTP> MGET * .JPG
Upload and download work, you can run the BYE interrupt connection.
FTP> BYE (Enter)
Finally, in order to facilitate everyone to memorize, summarize the commonly used FTP commands:
1. Open: Connect to the server;
2. Send (PUT): Upload the file;
3. GET: Download the file;
4. MGET: Download multiple files;
5. CD: Switch the directory;
6. Dir: View the files in the current directory;
7. Del: Delete the file;
8. BYE: Interrupt and server connection.
Although the order is simple, it is not necessarily everyone to know; then "Raise the Thousands of Soldiers, the use of the soldiers", maybe when it will be used. If you want to know more, play ftp> help (Enter) View the command set.