Active Topics

 


Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#1
This is a newbie question.

How to you copy or save a file to /root.

I have Xterm and can become root, but I do not know how to save or move a file from MyDocs to /root.


Thanks in advance.
 
Posts: 833 | Thanked: 124 times | Joined on Nov 2007 @ Based in the USA
#2
cp (options) [source] [destination]
__________________
N810, iGo bt kb, Diablo, 10Gb storage onboard instead of a Thinkpad
OTG w/ unlimited storage!!
Put a penguin in your pocket!!
PLEASE use the Wiki
 

The Following User Says Thank You to gemniii42 For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#3
Originally Posted by gemniii42 View Post
cp (options) [source] [destination]



Thanks for the quick response.

So would this be correct if the file was located in Documents:

cp /home/user/MyDocs/test.tgz /root/test.tgz
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#4
That would work, provided you have root access.
You can also exclude the second occurrence of the filename, and if you're in the /home/user directory you don't need to use the full path e.g.
Code:
cp MyDocs/test.tgz /root
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#5
Thanks to both of you. I will try that when I get home tonight.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:15.