Open a Terminal on the Folder in Ubuntu

What does “Open a Terminal on the Folder in Ubuntu” mean?

 

When you see instructions telling you to openterminal window in a specified folder, it means that in order for whatever commands you’re entering to work, theterminal (the interface for entering commands) needs to be looking in the right place (it looks to the desktop by default).

Previously, your only option would have been to open a terminal (Ctrl+Alt+T, or start typing “terminal” into Unity’s Dash menu, or open Applications > Accessories > Terminal if using Gnome “Classic”), then use the change directory command (cd) to make it point to the folder you need to work with.

eg: cd /home/yourusername/Pictures

In Ubuntu, your default file managerNautilus, gives you the option of opening a terminal in the folder you’re looking at, saving you manually opening a terminal and changing directory. So using the example of your Pictures folder, you would have that open in front of you, then right-click an empty area and choose Open in Terminal from the menu. Then enter your commands and you’re in business!

If you find for some reason that you don’t have the Nautilus plugin that gives you the context menu option, simply open Synaptic or Ubuntu Software Centreand search for and install the following package, and all will be fine:

nautilus-open-terminal

If you want to be even quicker, paste the following into a terminal:

sudo apt-get install nautilus-open-terminal

You’ll need to totally restart Nautilus, which you can do with either killall nautilus or nautilus -q in the terminal, or via Alt+F2.

Additional Notes:

In case you’re wondering how to customise your terminal with colours and different characters for the prompt, WDS_LINK_PLACEHOLDER_9812d71a72d156867989efef672c9622!

WDS_LINK_PLACEHOLDER_ab15fa147b221586add4a07969ae5866 WDS_LINK_PLACEHOLDER_846d069ab4d3f0c6fbf2bfc73079f86a WDS_LINK_PLACEHOLDER_2ddb213af633a7bd93a8989707ce486a WDS_LINK_PLACEHOLDER_1899d09fd02cfe8fed64eb244c45a75e WDS_LINK_PLACEHOLDER_b2c4a515f5edbd62443315a15c388434 WDS_LINK_PLACEHOLDER_ded097342b373edbd96575f1d7f50d54 WDS_LINK_PLACEHOLDER_b17c4451bda0a736ff6e320d1c70c372 WDS_LINK_PLACEHOLDER_6cf1a04ca3d60c5ba4cdb79a2d21862f WDS_LINK_PLACEHOLDER_0a013e87de57f5b2fd6d865641514813 WDS_LINK_PLACEHOLDER_9aa8a323eb43d84022d5afd4a6baf0c7 WDS_LINK_PLACEHOLDER_c6605125aea20d9fd3fabccf7010940c WDS_LINK_PLACEHOLDER_b2c11b6ac20dbb4c12fe798a97aa5975 WDS_LINK_PLACEHOLDER_c974c33442abc4bd85ac89016ea8423d WDS_LINK_PLACEHOLDER_1391477d85e06dbaea9d7080d461fc02 WDS_LINK_PLACEHOLDER_d381756a87104a22924abe394b633def WDS_LINK_PLACEHOLDER_133e03f7f75fbb8e472f8e69044fa7f9 WDS_LINK_PLACEHOLDER_669f6203497552f96fccee5a71d22d20 WDS_LINK_PLACEHOLDER_9ed95744cc5ac6954a298b69cf2cebfb WDS_LINK_PLACEHOLDER_4e6dd0df4de6a1b08af57847bab537b5 WDS_LINK_PLACEHOLDER_b802f957dc43694e75914e261972242e WDS_LINK_PLACEHOLDER_de7b801025cc6ae7e0820a33d9bc318d WDS_LINK_PLACEHOLDER_c93d1fc0bb15b7543652a1b7e605ab35

 

Leave a Reply

Your email address will not be published. Required fields are marked *