Inventory of the little-known ftp commands under Windows

  

FTP commands are one of the most frequently used commands for Internet users. FTP can be used in DOS, Windows command line, LINUX, UNIX or AIX operating systems. You will encounter a large number of FTP internal commands, familiar and flexible application of FTP commands, which can greatly facilitate users and get twice the result with half the effort. I will introduce you to the little-known FTP commands today.

FTP Server: home4u.at.china.com

User: yepanghuang

Password: abc123

Open the Windows Start menu and execute “ ” command, enter ftp in the dialog box, press “ OK & rdquo; button will switch to the DOS window, a command prompt appears

ftp>

Type the command to connect to the FTP server:

ftp> open home4u.at.china.com (Enter)

Wait a moment, the screen prompts the connection to succeed:

ftp> connected to home4u.china.com

Next, the server asks for the username and password, and enters yepanghuang and abc123 respectively, and the authentication is passed.

To upload a file, for example, to pass a:\\index.html to the root directory of the server, type:

ftp> put a:\\index.html (Enter)

When the screen prompts you that the transfer has been completed, you can type the relevant command to view:

ftp> dir (carriage return)

Download, assuming you want to put all the servers in the \\images directory. The jpg file is transferred to the machine, you can enter the command:

ftp> cd images (carriage return) [Note: enter the \\images directory]

ftp> mget *.jpg

After uploading and downloading, type bye to disconnect.

ftp> bye(Enter)

Summarize the commonly used FTP commands:

1. open: connect to the server;

2. send (put): upload file;

3. get: download file;

4. mget: download multiple files;

5. cd: switch directory;

6. dir: View the files in the current directory; Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved