Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu 12.04 graphic/window explorer) window from the command line at the current directory that the user is at.

So, if I open a command line, and type:

cd /home/myUser/some/long/path/to/a/directory

Then, I'd like to be able to issue some command:

nautilus open-sesame

And have a graphic window opened to /home/myUser/some/long/path/to/a/directory. Is this even possible? Thanks in advance.

share|improve this question

2 Answers

up vote 10 down vote accepted

You can type in the terminal:

cd /home/myUser/some/long/path/to/a/directory

An then

nautilus .

This will be open nautilus in the folder /home/myUser/some/long/path/to/a/directory (the period is the current directory)

Or in the Terminal just type:

nautilus /home/myUser/some/long/path/to/a/directory

Regards.

share|improve this answer

Consider also becoming more comfortable with working purely from the command line without needing to launch Nautilus. It is often quicker and more efficient to work from the command line.

If you are interested in the use of the command line in Linux, Ubuntu included, then a good introduction that is available both as a printed book as well as a free creative commons released ebook is The Linux Command Line by William E. Shotts, Jr.

share|improve this answer
1  
True, however there are some things a terminal just can't display properly (mainly graphics/picture files); it can be quite handy to do everything from the CL but use Nautilus (or Thunar etc.) as a sort of auxiliary pop-up window for extra overview over such stuff. – leftaroundabout Dec 8 '12 at 21:42

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.