How to use pscp to realize Mutual copy between windows and linux
This article mainly introduces "how to use pscp to achieve mutual copy between windows and linux". In daily operation, I believe that many people have doubts about how to use pscp to achieve mutual copy between windows and linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to use pscp to achieve mutual copy between windows and linux". Next, please follow the editor to study!
Using pscp to copy windows to linux
1. First, download the pscp and copy it to the c:\ windows\ system32 directory. When this is done, you can enter it directly on the command line.
2. Copy the files and folders in d:\ upfile
Pscp-r D:\ upfile root@192.168.1.8:/u01/upfile and enter.
Pscp is the replication command,-r is the replication folder, D:\ upfile refers to the local folder that needs to be replicated, root is the user name of the remote Linux, 192.168.1.8 is the IP address of the remote Linux, and / u01/upfile is the folder directory of the remote Linux to which you want to copy.
After clicking enter, you need to enter the login password of the remote Linux, which is not displayed here. When you have finished entering the password, click enter. Information such as the progress and speed of file replication is displayed.
If you copy a file, you don't have to-r! As follows:
Pscp D:\ upfile\ test.txt root@192.168.1.8:/u01/upfile and enter.
3. If you need a password-free copy as follows:
Pscp-pw password D:\ upfile\ consoleIf-D1.0.7.jar root@192.168.1.18:/u01/upfile/
Pscp-pw password-r D:\ upfile root@192.168.1.18:/u01/upfile/
4. Copy from remote to local
Pscp-pw password root@192.168.1.18:/u01/upfile/consoleIf-D1.0.7.jar D:\ upfile
Pscp-pw password-r root@192.168.1.18:/u01/upfile/ D:\ upfile
At this point, the study on "how to use pscp to achieve windows and linux to copy each other" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!