Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to open a file browser window (in KDE or GNOME or some desktop environment) for a directory while your navigating directories from the terminal?

Text editors that have a GUI will open up when I run them via the command line; I just wanted to do that for certain directories when I'm roaming around.

share|improve this question

migrated from stackoverflow.com Mar 4 '10 at 16:30

This question came from our site for professional and enthusiast programmers.

4 Answers 4

xdg-open . This alone should do the trick if you want to open the current directory, else try xdg-open /path.

share|improve this answer

MacOS 10

Open current directory: open .

share|improve this answer

In Gnome you can do

nautilus . &

The dot means current directory, and the & runs the process in the background so you can continue to use your terminal (and ctrl+c won't kill the browser).

share|improve this answer
2  
Just to help search engine users: if you're using Ubuntu, this probably applies to you. –  Nathan Long Aug 10 '10 at 17:56
    
It just works. Thanks. But remembering nautilus . is huge. So I added an alias in my .bashrc to alias open='nautilus .'.. Simple to remember. :) –  Ashwin kumar Oct 3 '13 at 6:49
1  
if you want a solution that works with other desktop environments besides Gnome, use xdg-open as mentioned in other answers. –  Alexander Taylor Jan 25 at 22:43
xdg-open my_dir
share|improve this answer

Your Answer

 
discard

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