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.

4 Answers 4

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

3
  • 2
    Just to help search engine users: if you're using Ubuntu, this probably applies to you. Aug 10, 2010 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 3, 2013 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. Jan 25, 2014 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.

8
xdg-open my_dir
0
2

MacOS 10

Open current directory: open .

1
  • Nice. Works in KDE too.
    – x5657
    Sep 29, 2023 at 17:29

You must log in to answer this question.