![]() |
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. |
Re: How to copy/save file to root?
cp (options) [source] [destination]
|
Re: How to copy/save file to root?
Quote:
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 |
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 |
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 18:23. |
vBulletin® Version 3.8.8