12

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.

Dave M
  • 13,200

4 Answers4

12

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).

Dentrasi
  • 11,205
  • 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 Oct 03 '13 at 06: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 '14 at 22:43
10

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

Renan
  • 8,011
absessive
  • 201
8
xdg-open my_dir
2

MacOS 10

Open current directory: open .

Chuck Savage
  • 199
  • 1
  • 8