LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-02-2010, 01:28 AM   #1
vbpate68
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, 01:37 AM   #2
corp769
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> user@host.org <path to remote file>
 
1 members found this post helpful.
Old 05-02-2010, 02:32 AM   #3
ajayan
Member
 
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, 02:42 AM   #4
pkhera_2001
Member
 
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.


Thanks
 
1 members found this post helpful.
  


Reply


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 03:40 AM
can someone explain what this cmd does? aussieaubs Linux - Newbie 2 06-27-2009 12:05 AM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
Cmd Gins Linux - General 2 01-26-2007 06:01 PM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 05:19 PM


All times are GMT -5. The time now is 07:05 AM.

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