221

When I work in terminal, sometimes I want to open the current directory in a GUI file manager. And then to click the items in the window to run the application. How can I do this?

dv3500ea
  • 37,754

6 Answers6

316

The following works in all desktop environments by using the default file manager:

xdg-open .

You can also open files from the terminal as if you had double clicked them in the file manager:

xdg-open file
dv3500ea
  • 37,754
56

Problem

This tip will explain How to open a file manager of the current directory in the terminal

Solution 1

The following works in all desktop environments by using the default file manager:

xdg-open .

Solution 2

You can also open files from the terminal as if you had double clicked them in the file manager:

xdg-open file

Solution 3

If you are using Gnome, you can use the gnome-open command, like so:

gnome-open .

Solution 4

You can use nautilus [path]. for current directory -

nautilus .
hhlp
  • 42,932
45

You write nautilus [path]. for current directory -

nautilus .
MByD
  • 655
16

In Ubuntu 20.04, you can just say browse . to open the current directory

dspyz
  • 600
  • browse is just a symlink to xdg-open. So you can use both of them in the same way. (i.e you can also open files with browse) – sahinakkaya Apr 13 '21 at 09:47
6

If you are using GNOME, you can use the gnome-open command, like so:

gnome-open .
Eliah Kagan
  • 119,820
MystaMax
  • 166
  • 1
    To use it first install: sudo apt install libgnome2-bin – vidur punj Aug 03 '16 at 11:37
  • I wonder why isn't there common command for opening whatever the GUI is. I have tried all commands from above answers and no one worked for me. This is the only working on Ubuntu – okainov Jun 14 '17 at 07:46
  • Is there a way to open gnome as sudo? I tried sudo gnome-open . with no luck. – Tim Mar 16 '18 at 20:58
0

You can use, nautilus . and press enter to open the current directory.

To open path specified location try the following.

E.g. If you want to open Music folder under this location:

/media/dulithdecozta/A08A64BB8A648F98/Music/

Then execute the following.

nautilus /media/dulithdecozta/A08A64BB8A648F98/Music/