Use FTP to transfer files between Linux and XP

Source: Internet
Author: User
Tags ftp commands ftp hostname
Use FTP to transfer files between Linux and XP-Linux Enterprise Application-Linux server application information. For details, refer to the following section. The first time I put it into practice today, I found it was actually very simple. It is basically the same as using FTP between two normal Windows XP machines. I installed Linux on a virtual machine, and the real system was Windows XP. in Windows XP, I used Serv-u software to set up an FTP server, then we can log on to the FTP server in the virtual machine's Linux to download or upload files. The difference is that in Linux, the FTP command is entered in the command line, there should also be Linux-specific software such as FlashFXP and CuteFTP. However, if I do not know it, I will not miss it.

A Brief Introduction to the FTP commands in Linux:

1. Connect to the FTP server
Format: ftp hostname or ip-address

A) on the linux Command Line, enter the IP address or Host Name of the server to be set up: ftp 10.60.48.195.

B) The server will ask you for your username and password. After entering them separately, you will be able to wait for the authentication to pass. Note: When you enter the password, the input is not displayed on the terminal, and it is always blank. So if you are sure that the input is correct, press Enter.

2. Download an object
The get and mget commands are usually used to download files. get is used for a single file, while mget is used for multiple files.

A) get
Format: get file name to be downloaded saved to the local file name

To obtain D: \ pic \ logo.jpg on the server, enter the following command:

Get/pic/logo.jpg face.jpg (Press ENTER)

In this example, the logo.jpg file on the server is downloaded to the local machine and renamed face.jpg ".

B) mget
Format: batch files to be downloaded by mget

To download all files under D: \ pic \ on the server, enter the following command:

Cd/pic
Mget *. * (Press ENTER)

Note: All downloaded files are saved to the current directory of the Linux host. For example, if you run the ftp command under/root/moqingwen, all files are downloaded to/root/moqingwen.

3. upload files
The put and mput commands are usually used to upload files. put is used for a single file, while mput is used for multiple files.

A) put
Format: put local files to be uploaded are saved to files on the server.

To upload your logo.jpg file to the server E: \ PICAND rename it face.jpg

Put logo.jpg/pic/face.jpg (Press ENTER)

B) mput
Format: mput local batch file to be uploaded

To upload all jpg files in the local directory to the server E: \ pic

Cd/rose (Press ENTER)
Mput *. jpg (Press ENTER)

Note: All uploaded files are from the current directory of the Linux host. For example, if you run the ftp command under/root/moqingwen, only files under/root/moqingwen will be uploaded to the server.

4. Disconnect
Bye: the connection to the server is interrupted.

Format: bye (Press ENTER)

Although they are all very simple, they are very practical.
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.