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.

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

3 Answers 3

up vote 12 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
2  
It shouldn't have root permissions unless you launch it with gksudo. –  mgunes Oct 21 '10 at 0:11

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

OR

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 file.zip 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

Use nautilus

For root file browsing, it's gksudo nautilus.

share|improve this answer

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.