Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
I don't think this question is an exact duplicate. There are many similar questions with some identical answers but none of the questions have the exact same focus as this question. The closest question is How to open a directory/folder and a URL through Terminal –  dv3500ea Mar 19 '11 at 14:52

5 Answers 5

up vote 29 down vote accepted

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
share|improve this answer

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

gnome-open .
share|improve this answer

I found the program Hotwire-shell very useful to do this you can navigate in it graphically then use it to run terminal commands in that directory. https://apps.ubuntu.com/cat/applications/oneiric/hotwire/

share|improve this answer

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 .
share|improve this answer

You write nautilus [path]. for current directory -

nautilus .
share|improve this answer

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.