Copying file into root
Hi, how can I copy a file into the root. I am new to linux and using fedora 13. I have to install jdk on the linux.
|
Quote:
If you're root, remember to be VERY CAREFUL when you're doing anything. |
Quote:
|
Quote:
then enter your root passwd. |
Commands
If you're new to Linux I would suggest using the "sudo" command.
Before your command precede it with "sudo <command>". This allows you to be the superuser for that single command. |
Quote:
And if you don't know the "cp" command, are you sure you should be installing files/programs as root?? |
Hey,
To copy the file into /root directory you need to be root or have permission as TB0ne said. Now, if you are root you can copy the file by issuing -- Code:
cp mySrcFile1 [mySrcFile2 mySrcFile3 ...] /root/ If you are not root then you may use sudo command. Code:
sudo <cmd> Quote:
|
Copying file into root
There is another way of getting a file into root or any other admin password protected dirrectory and that is.
Click on File system go to the dirrectory that you are wanting to copy a file into. Right click on this and select open as administrater, enter your password when prompted. Next go to the file that you want to copy into what was a protected dirrectory, right click the file and select copy, now go back to your dirrectory of importation and paste the file in to that dirrectory. While there right click the file and select properties, you want to ensure that your user name has the right to acces that file so set the permisions to reflect what you want. Hope that helps. |
It is possible to use a GUI, with care!
Some file managers (e.g. nemo, nautilus(?)) allow you to open a directory as root. Options such as copy & paste will work. Since you are running as root, there is no limit to the potential damage you can do. |
All times are GMT -5. The time now is 04:58 PM. |