Rookie can also set up FTP server 3

Source: Internet
Author: User
Tags format exit command line ftp ftp commands port number
FTP server 2. Access using FTP commands

Accessing a server through an FTP command you must understand some common command usage methods, listed below are several common FTP commands (assuming that the FTP server has an IP of 192.168.0.1 and the shared directory is ABC).

(1) Connecting the FTP server

If the system is Windows 9X, we can operate in MS-DOS, and if the system is Windows 2000/XP, we can do it under command line mode.

First, enter the FTP command in the command line or DOS window, and then type "open 192.168.0.1 port" (Port is the port number of the FTP server) after the "ftp>" prompt, at which time the command line waits for us to enter the username. Enter a valid username and then enter the appropriate password, at which point we can log on to the FTP server (Figure 3).



Figure 3

(2) Upload file

After successfully logging on to the server, we can upload the file. Before uploading files, we'd better set up a folder and upload the file to this folder, which is convenient for file management. The command format for creating a folder is: mkdir folder name, upload file's command format: put source file location and file name. After press ENTER, we also want to enter the target position, enter the legitimate target location and then hit enter the line. If you want to implement a bulk transfer file, you can use the "mput" command.

(3) Download files

First at the cursor entered the "PWD" command to view the directory into the FTP server, and then enter the "dir" or "ls" command, press ENTER, you can display all the file information in this directory. For example, now to completely download all the MP3 in the Music directory of the FTP server, first use the "CD" command to switch directories, enter the \music directory, and then select the "mget" command for downloading, the "mget" command can be downloaded in multiple files (format: Mget *. mp3). If you are downloading a single file, use the Get command.

(4) Delete document

We can use the "delete" command to delete a single file, if you need to delete files in batches, you can use the "mdelete" command, of course, if you feel that this is too waste of time, you can enter the "rmdir" command to delete the entire directory.

(5) Disconnect from the FTP server

After use, we finally use the "close" command to exit the connection with the server, if you want to completely and FTP say good-bye, then use the "Bye" or "quit" command to completely exit.



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.