Windows and Linux systems copy files to each other

Source: Internet
Author: User
Tags command line pscp root directory

You can use the PSCP command to achieve the mutual copying of files:

1. Download Pscp.exe file

2. If you want to perform in all directories, change the environment variables.

When Windows executes instructions, go directly to these directories to find the executable file.

To set the method for an environment variable:

My Computer-> Properties-> Advanced-> Environment variables

There are two kinds of user variables and system variables. User variables are of course available only to the current user, and system variables are available to all users.

We'll edit the variable named path in the user variable.

Click "Edit" to find the variable value is a semicolon ";" Separate the path name, here plus our path.

For example, I add the variable value into "C:Program Filesstormiicodec; C:Program Filesstormii; C:Program Filesputty ".

3. After changing the environment variable, enter PSCP at the command line to copy the file:

Command format: PSCP localfile rootuser@remoteip:/filedirectory

Copy entire folder: Pscp-r localdir rootuser@remoteip:/filedirectory

If you copy files from Linux, it is the same method, but the front and back address can be swapped;

4. For example, I want to copy all the files in the entire directory under Windows E:HTK to the Linux/root directory, as follows:

Pscp-r-L ROOT-PW 1234567890 E:HTK 192.168.0.204:/root

Description

-R Copy all files under directory;

The user name (root) of the-L offset machine (Linux);

-PW password (1234567890);

E:HTK the source file/folder address;

The address of the 192.168.0.204:/root destination file/folder. 192.168.0.204 is the IP address of the Linux machine.

5. In turn, transfer the Test.txt file under the Linux SOUNDRCG directory to Windows E: and also typing the command on the Windows command line:

Pscp-l ROOT-PW 1234567890 192.168.0.204:/soundrcg/test.txt E:

Note: PSCP does not seem to transmit fast.

Note : More attention to the computer Tutorials section, triple Computer office group: 189034526 welcome you to join

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.