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.