FTP Upload and download

Source: Internet
Author: User
Tags ftp commands terminates

1. Connection

First assume an FTP address user name password

FTP server:192.168.1.125

User:administrator

Password:abc123

2. Open the Windows Start menu, execute "Run" command, enter FTP in the dialog box, press "OK" button will switch to DOS window, a command prompt appears

ftp> Type the command to connect to the FTP server:

Ftp> Open 192.168.1.125 (carriage return)

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

Ftp> connected to 192.168.1.125

Then the server asks the user name and password, enter administrator and abc123, respectively, to be certified.

FTP Upload files under windows:

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

Ftp> put D:\index.html (carriage return)

When the screen prompts you to complete the transfer, you can type the relevant command to view:

ftp> dir (carriage return)

The FTP server under Windows downloads the specified format file:

Suppose you want to download all the. jpg files from the server \images directory to this computer, you can enter the instructions:

ftp> CD images (carriage return) [Note: Enter \images directory]

Ftp> mget *.jpg

Under Windows FTP upload and download work completed, type bye interrupt connection.

Ftp> Bye (carriage return)

FTP download specified download directory under Windows

Ftp> Get 1.apk C:\ftptest\1.apk

So the "1.apk" file on the FTP will be downloaded to the Ftptest folder under C drive.

FTP Upload files under windows:

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

Ftp> put D:\index.html (carriage return)

When the screen prompts you to complete the transfer, you can type the relevant command to view:

ftp> dir (carriage return)

FTP uploads the specified directory under Windows

Ftp> CD Test (switch to directory)

Ftp>put 1.apk (This allows the 1.apk file to be uploaded to the specified test directory on the server)

FTP upload download under windows:

Suppose you want to download all the. jpg files from the server \images directory to this computer, you can enter the instructions:

ftp> CD images (carriage return) [Note: Enter \images directory]

Ftp> mget *.jpg

Under Windows FTP upload and download work completed, type bye interrupt connection.

Ftp> Bye (carriage return)

Here are some common FTP commands:

1. Open: Connect to the server;

2. Send (Put): Upload files;

3. Get: Download files;

4. mget: Download multiple files;

5. CD: Switch directory;

6.cd.. : Return to the previous level (note the space in the middle)

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

7. del: Delete files;

8. Bye: Interrupts the connection to the server.

If you want to learn more, you can type

ftp> Help (carriage return)

To view the command set:

ASCII: Set to transfer files in ASCII mode (default value)

Bell: Every time a file transfer is completed, Alarm prompts

Binary: Set to transfer files in binary mode

Bye: Terminates the host FTP process and exits the FTP management mode

Case: When on, the file name copied with the Mget command to the local machine, all converted to lowercase letters

CD: cd command with UNIX

Cdup: Return to the top level directory

chmod: Changing file permissions for remote hosts

Close: Terminates the remote FTP process, returns to the FTP command state, and all macro definitions are deleted

Delete: Remove files from the remote host

dir [remote-directory] [Local-file]: Lists the files in the current remote host directory. If you have a local file, write the results to a local file

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

Help [command]: Explanation of the output command

LCD: Change the working directory of the current local host, if default, go to the current user's home directory

LS [remote-directory] [local-file]: With dir

Here are some common FTP commands:

1. Open: Connect to the server;

2. Send (Put): Upload files;

3. Get: Download files;

4. mget: Download multiple files;

5. CD: Switch directory;

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

7. del: Delete files;

8. Bye: Interrupts the connection to the server.

If you want to learn more, you can type

ftp> Help (carriage return)

To view the command set:

ASCII: Set to transfer files in ASCII mode (default value)

Bell: Every time a file transfer is completed, Alarm prompts

Binary: Set to transfer files in binary mode

Bye: Terminates the host FTP process and exits the FTP management mode

Case: When on, the file name copied with the Mget command to the local machine, all converted to lowercase letters

CD: cd command with UNIX

Cdup: Return to the top level directory

chmod: Changing file permissions for remote hosts

Close: Terminates the remote FTP process, returns to the FTP command state, and all macro definitions are deleted

Delete: Remove files from the remote host

dir [remote-directory] [Local-file]: Lists the files in the current remote host directory. If you have a local file, write the results to a local file

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

Help [command]: Explanation of the output command

LCD: Change the working directory of the current local host, if default, go to the current user's home directory

LS [remote-directory] [local-file]: With dir

FTP Upload and download

Related Article

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.