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 worked, how to set the hard disk from where I copy my files?

Best Answer


Umm, if you're using cygwin you want that command to look like

scp /cygdrive/d/test.txt <linux ip>:/etc/var/test/test.txt

You can use winscp and it's probably more simple