On a computer with IP address like 10.11.12.123
, I have a folder document
. I want to copy that folder to my local folder /home/my-pc/doc/
using the shell.
I tried like this:
scp -r smb:10.11.12.123/other-pc/document /home/my-pc/doc/
but it's not working.
If the two directories (
document
and/home/my-pc/doc/
) you mentioned are on the same10.11.12.123
machine.then:
cp -ai document /home/my-pc/doc/
else:
scp -r document/ [email protected]:/home/my-pc/doc/