Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new to linux and the terminal. As I learn how to use the terminal to navigate through directories, I like to use the gui file explorer to mirror my terminal navigation. The icons and file extension info in the gui file explorer help me figure out what everything is. However, I can't access the root folder via the gui, I can only access it via the terminal. Is there a way to enable access to the root folder outside of the terminal?

share|improve this question
1  
Try sudo nautilus. –  Danatela Feb 19 at 5:13
    

5 Answers 5

up vote 3 down vote accepted

Try the one of below commands,

gksu nautilus

or

sudo -i nautilus

It is an GUI way of navigating through directories with root access.

share|improve this answer
    
According to this link, gksu and sudo are about the same: unix.stackexchange.com/questions/66479/… –  Dan Johansen Feb 19 at 5:01
    
@DanJohansen Sure they are not when dealing with GUI. Read the answer in link above and you will understand why and note that we are Ubuntu so i recommend you just to link to askubuntu answers when you want to do that –  Ask Feb 19 at 5:03
1  
@maythux It is obvious that he should never use sudo rights with a GUI application, but it is what he was asking for to do. he can seriously mess up his system by doing so, I know, but that doesn't make my statement false, that gksu is a wrapper for sudo, therefore almost the same. –  Dan Johansen Feb 19 at 5:07
    
@maythux the answer Dan linked links backs to us askubuntu.com/a/11831/169736 which essentially says the same. gksu/do is just a wrapper for sudo –  Braiam Feb 19 at 5:38
1  
@maythux in that case tell that to OP who's asking, don't start a discussion where the answer clearly tells how could be done, when your own don't even include a warning about the dangers of using nautilus (or any file manager) as root. –  Braiam Feb 19 at 5:48

From terminal so from terminal you can do it with the command

gksu nautilus

This will prompt you to password. Enter your sudoer user password and this will open the root home directory.

If you want to open a specific path as root

gksu nautilus /path-you-want

EDIT: You can also install Open-as-Administrator in Ubuntu open Terminal (Press Ctrl+Alt+T) and copy the following commands in the terminal:

sudo add-apt-repository ppa:noobslab/apps

sudo apt-get update

sudo apt-get install open-as-administrator

After installation type this command to restart Nautilus:

nautilus -q

enter image description here

and now you can open any directory with root permissions

source

share|improve this answer

In terminal type "gksu nautilus".

(the gksu command can be used instead of sudo when wishing to run gui apps as root, though you should be cautious about what apps you run as root).

or

In terminal type "sudo -i" then "nautilus".

(works, but you will recieve some errors, and it's not a good idea as gui applications should use gksu)

or

In terminal type "sudo nautilus".

(works, but you will recieve some errors, and it's not a good idea as gui applications should use gksu)

share|improve this answer

open terminal and type
sudo nautilus
enter your password and voila it works.

share|improve this answer

The simplest one I know is, killall nautilus; sudo nautilus

When you have decided to damage your files, all that I can do is either watch the fun or make things even worse by helping you.

share|improve this answer
    
what is the harm by just navigating through root folder? and why you want to kill nautilus. sudo nautilus will open a different window with root access. –  souravc Feb 19 at 7:50
    
without root permission, one can't make a permanent damage to OS.using root, one can make it unbootable.I used killall nautilus because there is not much sense in loading two nautilus when you can use tabs.It's personal choice anyway. –  Registered User Feb 20 at 10:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.