Opening a terminal window in the current Nautilus directory

David M. Carney carney1979 at
Sun Oct 31 13:01:44 UTC 2004

On Sun, 31 Oct 2004 07:42:43 -0500, Steve Zatz <slzatz at> wrote:
> This is a real newbie question but I don't see a way to open a
> terminal window where the working directory is the same directory that
> a Nautilus window is currently open to.  To be as clear as possible,
> when I am pretty deep in the file system with Nautilus I only see how
> to open a terminal window in my home directory and then I have to cd
> to the directory that I am trying to get to.  Is there a better way?
> --
> ubuntu-users mailing list
> ubuntu-users at
Go to ~/.gnome2/nautilus-scripts

Create an empty file. Name it whatever you'd like.

Cut and paste the following in:

# Terminal here
exec gnome-terminal

That's it for a standard terminal. Make sure it's executable. 

When you use Nautilus to go into a folder, right-click on the
background of the directory you're in and select Scripts >> <your
script name>

Now, to open a root terminal in the same manner, do all the above
except cut and paste this in instead:

# Root terminal here
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`
sudo gnome-terminal

All the instructions are the same.

Have fun!


Registered Linux User #297958

More information about the ubuntu-users mailing list