FTP upload and download under Windows system and some common commands

  

Let's assume an ftp address username and password

FTP Server: home4u.at.china.com

User: yepanghuang

Password: abc123

Open the Windows Start menu, execute the “Run” command, enter ftp in the dialog box, press the “OK” button to switch to the DOS window, the command prompt appears

ftp> Command to connect to the FTP server:

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

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

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.

ftp upload file under windows:

For example, to upload D:\\index.html to the root directory of the server, you can type:

ftp> put D:\\ (Enter)

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

ftp> dir (Enter)

ftp upload under windows Download:

Suppose you want to download all the .jpg files in the server \\images directory to the machine, you can enter the command:

ftp> cd images (Enter) [Note: Enter\\ Images directory]

ftp> mget *.jpg

After ftp upload and download work on windows, type bye to disconnect.

ftp> bye(Enter)

Here are some 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; Br>

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

7. del: delete files;

8. bye: interrupt the connection with the server.

If you want to know more, you can type

ftp> help (Enter)

View command set:

ascii: Set in ASCII mode Transfer file (default)

bell: File transfer every time a file is transferred,

binary: Set to transfer files in binary

bye: Terminate host FTP process And exit the FTP management mode

case: When it is ON, use the MGET command to copy the file name to the local machine, all converted to lowercase letters

cd: same as the UNIX CD command < Br>

cdup: Return to the previous directory

chmod: Change the file permissions of the remote host

close: Terminate the remote FTP process and return to the FTP command state, all Macro definitions are deleted

delete: delete files in remote host

dir [remote-directory] [local-file]: List files in the current remote host directory. If there is a local file, write the result to a local file

get [remote-file] [local-file]: Transfer from the remote host to the local host

help [c Ommand]: Explanation of the output command lcd: Change the working directory of the current local host. If it is the default, go to the current user's HOME directory

ls [remote-directory] [local-file]: Same as DIR< Br>

Copyright © Windows knowledge All Rights Reserved