LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12: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, 12:37 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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, 01: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, 01: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 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
Open Source Consulting | Domain Registration