问题原文
原帖链接 · user3414354 · CC BY-SA 4.0
How to get a file from my path d:/test.txt and copy it to /etc/var/test/test.txt?
I've tried this:
scp d:/test.txt /etc/var/test/test.txt
but that didn't work.
How do I set the hard disk from where I copy my files?
社区高分解答
原帖链接 · Bibin Wilson · CC BY-SA 3.0
The best way to copy files from Windows to Linux using the command line is through pscp. It is very easy and secure. For pscp to work on your windows machine, you need it add its executable to your systems path. Once it is done, you can use the following format to copy the file.
pscp -pw password D:\test.txt [email omitted]:/etc/var/test/test.txt
You can refer the following blog post for more information on pscp setup.
http://comtechies.com/2016/02/copy-files-between-windows-and-linux.html
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
