How to open Nautilus at current command line directory?
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 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?
Solution 1:
You can type in the terminal:
cd /home/myUser/some/long/path/to/a/directory
and then:
nautilus .
The above command will 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
Solution 2:
You can also do gnome-open .
. gnome-open
is similar to open
on Mac which tries to open the file using the best matching application. By default, gnome-open .
on Ubuntu will open the current directory in Nautilus.
There is an open
command in Ubuntu as well but it does not work in this case.