46

I would like to add it to the default menu (mouse right-click)

Like I want to right click on a folder and open it in the terminal. I don't want to have to find the directory in the terminal.

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Alex
  • 2,079
  • 9
  • 33
  • 40
  • Welcome to Ask Ubuntu! Please define your question. For more details on best practices consider reading the [FAQ](http://askubuntu.com/faq#howtoask) on asking questions.Regards – Ringtail Mar 30 '12 at 22:24
  • what do i need to add? – Alex Mar 30 '12 at 22:25
  • Wow, this really worked on my Ubuntu Srever 14.04 –  Jul 17 '14 at 18:21
  • Thanks for the answer Manish Sinha, but I am not able to follow the steps. Kindly help me at the following stage so that I can proceed. I am not getting `interface` under `gnome`. – Ram Aug 19 '14 at 07:48

1 Answers1

49

You first need to install the package nautilus-open-terminal from Software Center or Synaptic Package Manager

Installing Nautilus Open Terminal package

Then goto command line and type

nautilus -q

Then open nautilus and you can find "Open in Terminal"

Terminal Open from Nautilus

If you want to assign a keyboard shortcut to this action, please consult the following Q&A:

Keyboard shortcut for "open a terminal here"

Manish Sinha
  • 11,475
  • 2
  • 47
  • 63
  • what about in ubuntu 10.04, there is no Unity – Alex Mar 30 '12 at 22:33
  • @Alex Press Alt+F2 and type `gconf-editor`. I have updated the answer. – Manish Sinha Mar 30 '12 at 22:36
  • Good answer. Consider using a [browser script](http://stackapps.com/questions/2405/insert-apt-link-making-it-easy-to-insert-an-apt-link-into-your-question-answ) to easily add those apt links.. :) – jokerdino Mar 30 '12 at 23:31
  • 4
    Why do we need to check the `can_change_accels` option? Would you please explain a bit more – manuzhang Apr 06 '12 at 00:01
  • @manuzhang I am not very sure, but it did show up. Maybe a setting – Manish Sinha Apr 06 '12 at 08:52
  • @ManishSinha What if not? – manuzhang Apr 06 '12 at 11:54
  • @manuzhang I got it working that way – Manish Sinha Apr 06 '12 at 13:30
  • 2
    @ManishSinha It works for me without checking that option – manuzhang Apr 06 '12 at 14:05
  • @manuzhang I will try it out myself. – Manish Sinha Apr 06 '12 at 14:55
  • That's a really cool feature. Any idea how to do that in KDE? (kubuntu). I was able to get it to work on a folder by adding konsole --workdir %u to Open With in a folder's properties. That didn't work on a text file. – Joe Apr 06 '12 at 23:17
  • @Joe Maybe you should ask a new question. – Manish Sinha Apr 07 '12 at 08:05
  • @manuzhang can_change_accels is described as "Whether the user can dynamically type a new accelerator when positioned over an active menuitem." which may sound a little cryptic.. but basically means you can add stuff to the contextual menu .. – marc-andre benoit Oct 04 '12 at 01:53
  • @marc-andrebenoit any references would be helpful – manuzhang Oct 04 '12 at 03:34
  • @manuzhang well what i quoted was actually the long description in the gconf editor... an accelerator is any key or key combination or a mouse click so what this setting says is that you can for example .. right click to have a context menu doing so then positions you over an active menuitem (the contextual menu) and it enables you to then left click ( which is a new accelerator compared to the right click you just did.. ) to finish your task of opening up a new context menu element.. from what i understand.. it is what it means.. but i may be wrong.. hence me just posting in comments.. :) – marc-andre benoit Oct 04 '12 at 05:13
  • 2
    I'm kind of surprised that this isn't built in... – Brandon Bertelsen Dec 08 '13 at 23:08
  • If nautilus doesn't automatically restart, and things are hidden on your desktop, I recommend running "nohup nautilus &" to get everything back. – Trevor Hickey Feb 04 '15 at 01:11