Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-02-2010, 12:28 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Post SCP cmd

How would you use SCP to copy your ~/.bashrc file from bravo to local system?
Old 05-02-2010, 12:37 AM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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> <path to remote file>
1 members found this post helpful.
Old 05-02-2010, 01:32 AM   #3
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
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/
1 members found this post helpful.
Old 05-02-2010, 01:42 AM   #4
Registered: Mar 2006
Location: New Delhi, India
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 67

Rep: Reputation: 18
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.

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cmd Line help SteveThePirate Linux - Newbie 7 08-14-2009 02:40 AM
can someone explain what this cmd does? aussieaubs Linux - Newbie 2 06-26-2009 11:05 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
Cmd Gins Linux - General 2 01-26-2007 05:01 PM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 04:19 PM

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration