Add feature to Nautilus – to open “terminal” in current folder 

GNOME is a simple and stable destop environment. It doesn’t lack any beauty either. It is also very easily customizable. If you have used KDE, you will know that the file manager (Konquerer) had a nifty feature that let you right click and open a terminal window right inside the directory that you were in. The new manager called Dolphin, also has this feature, implemented slightly differently. Nautilus (the resident GNOME file manager) doesn’t come ready-fitted with this ability. Adding it is really easy though. If you check this link at G-scripts, you will see many nifty scripts for you to add any kind of feature to nautilus and other applications in GNOME. Here’s how you do it:

let’s take this very useful feature – opening a terminal in a directory you are browsing (current folder).

Go to your home directory (Place > Home)
Key press: Ctrl+h (or, View > Show Hidden Files)
Find and navigate to “.gnome2” and “nautilus-scripts”
Right-click, Create document, empty file, and name the new file “open terminal”
Double click that file – the file opens in the Text Editor called gedit. Copy and past the bash script appearing below here, into the new file (the script was found at G-script).

#!/usr/bin/perl -w
# Open terminal here
# Nautilus script that opens a gnome-terminal at the current location, if it's
# a valid one. This could be done in shell script, but I love Perl!.
# 20020930 -- Javier Donaire
# Licensed under the GPL v2+
# Modified by: Dexter Ang []
# 2003-12-08: Modified for Gnome 2.4
#		- Added checking if executed on Desktop "x-nautilus-desktop:///"
#		  so that it opens in /home/{user}/Desktop

use strict;

if ($_ and m#^file:///#) {
  exec "gnome-terminal --working-directory='$_'";

# Added 2003-12-08 Dexter Ang
if ($_ == "x-nautilus-desktop:///") {
  $_ = $ENV{'HOME'};
  $_ = $_.'/Desktop';
  exec "gnome-terminal --working-directory='$_'";

Notice that I have retained all the authors’ comment lines inside this script. You should do the same even if you add anything in the script yourself – notice for example, the commented lines (beginning with a hash symbol).

Now in gedit, hit the SAVE button (Ctrl+s) and Quit (Ctrl+q).
Now make the file, executable, thusly:
In the folder “home/yourname/.gnome2/nautilus-scripts” your nautilus window, see the file your named “open terminal” hover over it and right click. Go to Properties and open the tab “Permissions”.. find at the bottom of that window, check “Allow executing file as program” then hit “close”. You can delete the backup file named “open terminal” then close nautilus.

That’s it!
When you navigate to any folder now, you will find this feature when you right click.. find Scripts.. and select the one that is named “open terminal here”. I find that the right click works best when i view the directories in “icon” (Ctrl+1) or “compact” view (Ctrl+3) in nautilus.

Thanks to the authors of this script, Javier Donaire and additions by Dexter Ang. It works very well.