Use FTP to transfer files between Linux and Windows XP

Source: Internet
Author: User
Tags ftp commands ftp hostname
Article title: use FTP to transfer files between Linux and Windows XP. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

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: the file name to be downloaded by get is 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 stored 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: Local batch files to be uploaded by mput

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.

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.