Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

What's the command to open the file browser? I want it so that I can assign a keyboard shortcut to open a specific folder.

share|improve this question

4 Answers 4

up vote 30 down vote accepted

nautilus --browser will ensure that Nautilus is launched in browser mode even if you're normally using it in spatial mode.

You can append the path you want to open to the end:

nautilus --browser ~/some/directory
share|improve this answer
But the problem I have with nautilus is that it has root permissions. How can I avoid that? I don't want to accidentally delete any files. – Jon Doe Oct 21 '10 at 0:03
It shouldn't have root permissions unless you launch it with gksudo. – mgunes Oct 21 '10 at 0:11
simply you can type nautilus in command text. I have done the same shorcut using Win+E for opening nautilus – Amit Rane Mar 28 at 13:45

The gnome-open command will open a directory with the appropriate application, which in this case is Nautilus:

gnome-open PATH

This will open the directory /tmp using the Nautilus file browser.

gnome-open /tmp


cd /tmp
gnome-open .

I like the gnome-open command because you can use this exact same command to open a file with the appropriate application. No need to remember any funny flags. It just works.

  • gnome-open file.pdf will open the PDF in a PDF browser.
  • gnome-open will open a zip file using the Zip archive viewer.

It's also similar in name and function to the Mac OS X open command, for those of us who use Macs.

share|improve this answer
To update this answer: gnome-open is now called gvfs-open. If you want a desktop-agnostic command, you can also use xdg-open. – Jason Champion Mar 21 at 5:12

Use nautilus

For root file browsing, it's gksudo nautilus.

share|improve this answer

I put the following line in my .bashrc:

alias opn="nautilus -s ."
share|improve this answer
There is a command named open already in package kbd, it's linked to openvt. – Volker Siegel Sep 2 '14 at 9:53

Your Answer


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.