LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How would you use scp to copy your ~/.bashrc file from the system named plum to th (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-you-use-scp-to-copy-your-%7E-bashrc-file-from-the-system-named-plum-to-th-4175491926/)

sandrews38 01-20-2014 12:17 PM

How would you use scp to copy your ~/.bashrc file from the system named plum to th
 
How would you use scp to copy your ~/.bashrc file from the system named plum to the local system?

Habitual 01-20-2014 12:46 PM

I think it goes like this:
Code:

scp user@remote:.bashrc .
http://www.hypexr.org/linux_scp_help.php
http://stackoverflow.com/questions/1...emote-to-local
http://askubuntu.com/questions/32937...o-home-machine

Edit: Welcome to LQ

lleb 01-20-2014 07:44 PM

Quote:

Originally Posted by sandrews38 (Post 5101604)
How would you use scp to copy your ~/.bashrc file from the system named plum to the local system?

to scp a file from system A to system B is it always in the form of:
Code:

scp file remote_user_B@IP_B:/path

scp remote_user_B@IP_B:/path/to/file /path/on/local/system

so the first example will move a file form your local system to the remote system (B), the 2nd will move a file from the remote system (B) to your local system.


All times are GMT -5. The time now is 01:06 AM.