maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia 770 (https://talk.maemo.org/forumdisplay.php?f=24)
-   -   How to copy/save file to root? (https://talk.maemo.org/showthread.php?t=23684)

guck11 2008-09-17 16:54

How to copy/save file to root?
 
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.

gemniii42 2008-09-17 17:15

Re: How to copy/save file to root?
 
cp (options) [source] [destination]

guck11 2008-09-17 17:54

Re: How to copy/save file to root?
 
Quote:

Originally Posted by gemniii42 (Post 224711)
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

codeMonkey 2008-09-17 18:39

Re: How to copy/save file to root?
 
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

guck11 2008-09-17 18:43

Re: How to copy/save file to root?
 
Thanks to both of you. I will try that when I get home tonight.


All times are GMT. The time now is 06:45.

vBulletin® Version 3.8.8