Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know i can launch a folder in windows by using

explorer.exe path

How do i do the same in linux?

share|improve this question

migrated from Jul 19 '10 at 22:11

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

up vote 4 down vote accepted

On GNOME systems use:

gnome-open /dir/name

On KDE systems use:

kde-open /dir/name

Actually the commands would open anything you throw at them using associated application.

I'm surprised that apparently neither FreeDesktop nor LSB standardized that yet.

share|improve this answer
F yes. This is a great solution. This is the only one which worked for me. – acidzombie24 Jul 21 '10 at 19:51
note, by doing this i saw mention of xdg-open which has been mentioned by FreeDesktop. My code does this first and checks the return code. If not 0 it will attempt with gnome (what i am using) then KDE – acidzombie24 Jul 21 '10 at 22:15

"Linux" doesn´t say much, but

If you are using gnome, and nautilus.

$nautilus path

For example

$nautilus /home/jimmy/jimmys_files

If you are using KDE, try

$konqueror path
share|improve this answer
Or $dolphin path. Konqueror needs to be configured to use the Dolphin KPart for it to open folders, but it usually is by default. – David Z Jul 19 '10 at 22:30
or $thunar path if using XFCE. – Zurahn Jul 20 '10 at 1:09
What's the deal with the $ sigils? It seems pretty unlikely that those apps wouldn't be in the path. It would be more clear to just take them out, so as not to confuse people who don't understand that $nautilus means "the nautilus executable, wherever it happens to be on your system". In the context of this question, I don't think we're expecting people to be writing shell scripts that need to run without a standard $PATH set. – intuited Jul 26 '10 at 1:04

Or, if you're using KDE, it's either:

dolphin /path/to/folder


konqueror /path/to/folder

depending on which you want to use.

share|improve this answer

Well... all the answers are good but no one will open it in explorer! :)
If you have wine installed and you probably have, this one will! :) (a rather oldish version but... explorer!)

wine explorer c:\\users\\youruser

OBS: I think this is not what you want to do and it's useless but I couldn't resist!

share|improve this answer

I know i can launch a folder in windows by using

No, you can open a folder in Windows explorer by doing that

How do i do the same in linux?

What file manager do you want to use? In most cases it will be the same syntax, but with the name of the file manager you are actually using.

share|improve this answer
"No, you can open a folder in Windows explorer by doing that" <-- i never used a version of windows where i couldnt – acidzombie24 Jul 19 '10 at 22:09
"where you couldn't" open a folder in Windows explorer by doing that. The point is, you're not "launching a folder in Windows," you're opening it in Explorer. And the Linux equivalent of that action depends on what file manager you have installed. – David Z Jul 19 '10 at 22:27

Just type:

nautilus /path/to/folder
share|improve this answer

nautilus ~ for your home and nautilus / for opening the root. For other windoyish shortcuts in Ubuntu please refer

share|improve this answer

You can also use

gksudo nautilus path/to/directory

to run a nautilus window as root.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .