Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jul 19 '10 at 22:11

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

add comment

8 Answers 8

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
1  
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
add comment

"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
2  
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
2  
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
add comment

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

dolphin /path/to/folder

or:

konqueror /path/to/folder

depending on which you want to use.

share|improve this answer
add comment

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
add comment

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
4  
"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
add comment

Just type:

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

nautilus ~ for your home and nautilus / for opening the root. For other windoyish shortcuts in Ubuntu please refer http://ubuntuforums.org/showthread.php?p=9636969

share|improve this answer
add comment

You can also use

gksudo nautilus path/to/directory

to run a nautilus window as root.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.