21

Inside the terminal, I could use the command 'explorer .' in Win32 or 'open .' in Mac to open GUI explorer/Finder.

What's the equivalent command in Ubuntu?

prosseek
  • 1,865

6 Answers6

33

xdg-open . will do what you want based on what is set as the default file manager, however since nautilus is the default I personally find it easier to autocomplete nautilus .

(Note that xdg-open is supposed to supercede gnome-open, as it's a Freedesktop.org solution that is cross-desktop and agreed upon instead of GNOME/KDE specific)

Jorge Castro
  • 71,754
  • Interesting. I have generally used nautilus --browser . I wonder if there is any functional difference with and without the --browser argument. – belacqua Jan 28 '11 at 00:17
  • 1
    You might also be interested in gnome-open . which will also default to nautilus for a directory. – frabjous Jan 28 '11 at 03:43
  • If I where to use sudo, I'ld use sudo -- nautilus --no-desktop . so that a new desktop is not created. If not, the desktop is messed up. – user4124 Jan 28 '11 at 16:12
4

You may wish to give a chance to dolphin, which can be easily installed (if not already) by dropping the next line in a terminal:

sudo apt-get install dolphin

Dolphin is more like a "Finder" and it features the sliding effect in the vertical columns when opening folders and some other useful features.

After installind (or if already installed) drop the next in a terminal, or [Alt][F2] in order to invoke the "Run application" box in order to enter the next command:

dolphin

And enjoy.

A screenshot is placed here for you to see dolphin in action.

enter image description here

  • Thanks for the tip, and how can you have the Mac-like doc in ubunut? – prosseek Jan 28 '11 at 05:02
  • @ prossekk: http://askubuntu.com/questions/209/what-advantages-and-disadvantages-of-different-docks – Javier Rivera Jan 28 '11 at 08:26
  • 1
    The Dock that I am using (the one in the screenshot) is called "Docky". I personally tested lots of applications, such as: gnome-do, awn and a few other (even the gnome-panel can be set up as a dock itself) but the only which had no problems at all is Docky. Information and "how-to's" can be reached here: http://wiki.go-docky.com/index.php?title=Welcome_to_the_Docky_wiki – Geppettvs D'Constanzo Jan 28 '11 at 17:37
1

I have installed gvfs-bin to get the gvfs-open command and then setup an alias in my ~/.bashrc for open so it works pretty much just like OS X. I can do open . to open a nautilus window or open file to open a file in the default program for that file.

andrew.46
  • 38,003
  • 27
  • 156
  • 232
1

I use mimeopen and it works perfectly fine. Look at it's man page too, it has some handy options.

stacksia
  • 131
0

An improvement over this answer which gets rid of the noise from stderr and stdout:

open () {
        nohup xdg-open $1 > /dev/null 2>&1
}
taper
  • 218
0

On gnome (the ubuntu default) it's gnome-open

Amandasaurus
  • 1,816
  • 1
    Please check Jorge answer: http://askubuntu.com/questions/23596/whats-the-equivalent-to-explorer-windows-or-open-mac/23597#23597 – Javier Rivera Feb 08 '11 at 17:47