FTP usage under command line _FTP server

Source: Internet
Author: User
Tags ftp
Here are the simple steps and instructions for the command

Suppose there is a target FTP server, ip:123.123.123.123, username: ftpname Password: ftppwd. Currently, to upload the File.doc from the D:\ftpin directory to the target server via the command line, download the following steps from the server:

1. "Start"-"Run"-Enter "FTP" (This is P)

2.open 123.123.123.123
/* This step can be merged with the first step, in the "Run" directly input "ftp 123.123.123.123″." If your FTP server is not using the 21 default port, if the port is 12333, then this step of the command should be in the back space plus 12333, that is, "open 123.123.123.123 12333" * *

3.ftpname
/* command line prompts you to enter the user name, different OS version (XP,VISTA,WIN7) hint may have the difference * *

4.ftppwd
/* Prompts you to enter the password, in the password input process will not show and will not move the cursor, after the password to enter. If you enter a wrong password, you will not be prompted to re-enter, then you have to type the "user" command, there will be a third step, you can re-enter the user name and password. */

5.dir
/* You can use the dir view command to view the FTP server files and directories, with the LS command can only view files. */

6.mkdir Rsfile
/* Create the Rsfile directory under the root directory on the FTP server. */

7.CD Rsfile
/* Enter directory Rsfile, with "CD your directory Name" can enter the current directory of the next level of directory, this is the same as DOS. */

8.bin
/* Use binary transmission. If you want to upload a download, this step is very important, do not first execute this command, upload download will be very slow. */

9.LCD D:\ftpin
/* Locate the local default folder. The LCD command here is similar to the cd*/on the normal command line.

10.!dir
/* View the files and directories in the local folder * *

11.put File.doc
/* Upload the file File.doc in the current directory (D:\ftpin) to the FTP server default directory. You can upload all files to the FTP server using "Mput *.*". */

12.get aaa.jpg
/* Download the file aaa.jpg in the default directory of the FTP server to the current directory (D:\ftpin). You can download all files to d:\ftpin*/using "Mget *.*"

13.delete *.*
/* Deletes all files in the directory Ftpin. */

14.cd..
/* Return to the previous level directory, that is, the root directory. Return to previous directory with "CD ..." Be aware that there are spaces in the middle. Returns the root directory with "CD \". */

15.mrdir Ftpin
/* Delete directory Ftpin. Delete the directory, you cannot have files and directories in this directory, or you will not be able to delete them. */

16.bye
/* Exit FTP Server * *

Upload the download special attention to the server and the local computer's current directory, the file is from where to where the problem. To view the current directory command for the FTP server as PWD, you can locate the server's directory with the CD command. You can use the LCD command to locate the local computer's directory. The above example applies to the FTP command line upload download the most commonly used commands, you can also use the command "? "See more commands."

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.