Command line mode uses FTP actual combat practice

xiaoxiao2021-03-06  101

First assume that there is an FTP server, FTP server: Qint.ITHOT.NET, username: username Password: user1234. In the local computer D: Create a folder "qint". Copy the file to be uploaded to D: / Qint. Upload files from local uploaded files from the server, as follows:

1. "Start" - "Run" - Enter "FTP"

2.open qint.iT.NET

/ * This step can be merged with the first step and enter "FTP Qint.iTHOT.NET" directly in "run". If your FTP server is not using the 21 default port, if the port is 2121, then the command of this step should be added 2121 in the back space, ie "Open qint.iT.NET 2121" * /

3.Username

/ * Tip You enter your username * /

4.USER1234

/ * Tips you enter your password, password is not exposed, and then enter your password. If your password is entered, you will not prompt you to re-enter. At this time, you want to type the "User" command, will appear in the third step, you can re-enter the username and password. * /

5.dir

/ * After you successfully log in, you can use the DIR to view the command to view the files and directories in the FTP server, and you can only view the file with the ls command. * /

6.mkdir qint

/ * Established a Qint directory in the root directory on the FTP server. * /

7.cd qint

/ * Enter the directory Qint, use "CD Your Directory Name" to enter the next level directory of the current directory, which is the same as DOS. * /

8.bin

/ * Adopt binary transmission. If you want to upload download, this step is important, don't perform this command first, the upload download will be very slow. * /

9.lcd d: / qint

/ * Locate the local default folder, in front of me in D: disk created in advance. * /

10.! DIR

/ * View files and directories in local folders * /

11.Put i001.jpg

/ * Upload file i001.jpg in the current directory (D: / Qint) to the FTP server default directory. You can use "MPUT *. *" To upload all files to the FTP server. * /

12.Get D123.jpg

/ * Download the file D123.jpg in the default directory of the FTP server to the current directory (D: / Qint). You can download all files to D: / Qint * / with "MGet *. *".

13.delete *. *

/ * Delete all the files in the directory Qint. * /

14.cd ..

/ * Return to the previous directory, the root directory. Back to the previous directory "CD .." should be noted that there is space in the middle. Returns the root directory "CD /". * /

15.mrdir qint

/ * Delete the directory Qint. Delete the directory, do not have files and directories in this directory, or you will not be deleted. * /

16.bye

/ * Exit FTP server * /

Special attention to the current directory of the server and the local computer when the download is downloaded, where is the problem from where the file is. View the current directory command of the FTP server is a PWD, you can locate the server with the CD command. You can locate the local computer with the LCD command. The above instance is applied to the most common command to download and download the ftp command line, you can also use the command "?" To view more commands.

转载请注明原文地址:https://www.9cbs.com/read-105634.html

New Post(0)