LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SCP cmd (https://www.linuxquestions.org/questions/linux-newbie-8/scp-cmd-805399/)

vbpate68 05-02-2010 01:28 AM

SCP cmd
 
How would you use SCP to copy your ~/.bashrc file from bravo to local system?

corp769 05-02-2010 01:37 AM

look at the man file for scp... i'm at work, so i can't tell you exactly how to use the command. but besides that, a general idea is as such:

scp <path to local file> user@host.org <path to remote file>

ajayan 05-02-2010 02:32 AM

scp ~/.bashrc [email]user@ip:
For Eg you want to save it in /etc then the command would be
scp -r ~/.bashrc user@ip:/etc/

pkhera_2001 05-02-2010 02:42 AM

Hey what is the bravo...?

If it's a remote system then exact command should be:

scp <username>@bravo:/home/bravo/.bashrc /tmp/. # I am assuming that you wish to copy .bashrc file to tmp folder.

If bravo is a user who's home folder is at /home/bravo and you have rights to copy file from bravo's home folder then

scp /home/bravo/.bashrc /tmp/. # I am assuming that you wish to copy .bashrc file to tmp folder.


Thanks


All times are GMT -5. The time now is 04:27 AM.