Almost any GUI application (on X window systems) can be opened from a terminal window within that GUI. To open any GUI app, type the name of the executable at the shell prompt. Most file browsers take a directory as a command line argument, so you should usually pass
. as the parameter.
Here are some examples for some popular systems, most X based systems work similarly.
On Gnome, you can run
nautilus (the default file browser) directly, or on Gnome 2, you can use
gnome-open to open any file (including directories) with the configured Gnome file handler application:
$ nautilus .
$ gnome-open .
On KDE, there are two popular file browsers, I'm not aware of a command similar to
gnome-open can be executed within KDE, but by default it opens Gnome apps.
$ dolphin .
$ konquerer .
On OS X, as mentioned in comments, a similar command line program,
open can be used.
$ open .
What if you don't know the executable name of your system's file browser?
If on Gnome 2, use
gnome-open . If on OS X, call
open .. Each of these will execute the configured file browser for your GUI environment.
If you don't know of such a command in your window system, here's one way to find out on systems with a
ps command that understands the options
-u USER and
- In your terminal window, type
ps -u$USER -o comm > /tmp/$$A
- In your GUI, start the file browser.
- Back in your terminal window, type
ps -u $USER -o comm > /tmp/$$B (Notice the
B suffix, this is a different file than step 1).
- Also in the terminal, type
Should display the name of your file browser. It's possible you could see more than one name, if another program happened to start under your user id during the time between the calls to
$ ps -u $USER -o comm > /tmp/$$A
$ # open file browser in gui
$ ps -u $USER -o comm > /tmp/$$B
$ diff /tmp/$$[AB]