Use the pscp command to upload and download Linux files

Source: Internet
Author: User
Tags pscp
(1) upload 2. start & amp; rarr; run & amp; rarr; cmd enter dos mode enter the following command: pscpD: \ java \ apache-tomcat-5.5.27 \ webapps \ szfdc.rardev@192.168.68.249: /home/dev3. enter the password and the OK file has been uploaded to the target...
(1) upload 2. start → run → cmd enter to dos mode enter the following command is the code snippet: pscp D: \ java \ apache-tomcat-5.5.27 \ webapps \ szfdc.rardev@192.168.68.249:/home/dev 3. enter the password OK file has been uploaded to the target machine/home/dev directory (2) Download 1, start → run → cmd enter to dos mode enter the following command pscp dev@192.168.68.248: /home/dev/gren. SQL d: \ gren. SQL; enter the password. OK! Where: dev is the linux user name, 192.168.68.248 is the remote Linux host IP address,/home/dev/gren. SQL is a file in linux, d: \ gren. SQL stores local files. for example, pscp is a remote file transfer tool included in the putty installation package. it is similar to scp commands in Linux. the usage is as follows: \ WINDOWS \ system32, which can be called anywhere. The syntax is the same as scp. Below are some useful options. -P: specifies the time when the source file is created when the object is copied. -Q: No prompt message is displayed when the file is copied. -R: when copying the entire directory-v, a prompt message is displayed. Usage: pscp [options] [user @] host: source target pscp [options] source [source...] [user @] host pscp [options]-ls user @ host: filespec usage: pscp [option] [user name @] host: source File target file pscp [option] source file [source file...] [Username @] host pscp [option]-ls username @ host: File space? Options: option:-p preserve file attributes protects file attributes-q quiet, don't show statistics quiet, no statistics are displayed-r copy directories recursively copy subfolders-V print version information and exit display information-v show verbose messages-load sessname Load settings from saved session-load loading, load the settings of the Save section-P port connect to specified port-P port, connect to the specified space port-l user connect with specified username-l user, use the specified user to connect to the space-pw passw login with specified Password-pw password, use the specified password to log on to the space-1/-2 force the version used by ssh-4-6 force use of IPv4 or IPv6-C to open the compression-I key, demonstrate the use of the key file-batch to disable interaction capabilities, maybe-unsafe is not safe, allowing the servo end to replace character (dangerous) commonly used methods: 1. transfer the local file to/root/C: \> pscp.exe file 192.168.32.50:/root/on the Linux server. it will prompt you to enter the password, just like using scp in Linux. [Note] Here, pscp will use the user name you log on to Windows. Therefore, you may need to specify the Linux user name. C: \> pscp.exe file root@192.168.32.50:/root/or C: \> pscp.exe-l root file 192.168.32.50: /root/[note] here "-l root" should be before file 2. transfer the local directory dir and file to/root/on the Linux server /, and specify the server port 2009 C: \> pscp.exe-P 2009-r dir file root@192.168.32.50:/root/3, the server/root/file back to the local current directory C: \> pscp.exe root@192.168.32.50:/root/file. 4. retrieve the/root/dir directory on the server to the local "C: \ My Documents \ data \" directory C: \> pscp.exe-r root@192.168.32.50:/root/dir "C: \ MyDocuments \ data \"
Author zhanghe086
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.