Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

quicker way to open an ubuntu terminal in a particular directory [closed]

Tags:

ubuntu

How can I set up some quick access ubuntu terminals to directories other than the user's home?

like image 989
H2ONaCl Avatar asked Jan 08 '11 05:01

H2ONaCl


4 Answers

Create custom keyboard shortcuts. E.g. pressing Ctrl + Alt + J to open Terminal in a specific directory is blazingly fast.

In Ubuntu 11.10 you can do this by going to System Settings > Keyboard > Shortcuts (tab).

In the command field of a new custom keyboard shortcut window, type gnome-terminal --working-directory=/path/to/dir.

To change the keyboard shortcut to open Terminal in the default directory (default is Ctrl + Alt + T), look for the launcher shortcuts ("Launchers").

like image 105
Matias Kinnunen Avatar answered Nov 03 '22 18:11

Matias Kinnunen


Check out Apparix. To install it run sudo apt-get install apparix then apparix --shell-examples.

Once you install this, it basically is a bookmark manager for your terminal. Run bm <name> to bookmark your current path as a custom name, then use to <name> to go to that location later.

like image 34
Jon Avatar answered Nov 03 '22 17:11

Jon


You can edit ~/.bashrc and add the line CD /path/to/desired/directory. Everytime you open a new shell, it'll default to that directory.

like image 27
chaoskreator Avatar answered Nov 03 '22 17:11

chaoskreator


You can give gnome-terminal a working directory. If you add a terminal applet to a panel, you can then get its properties and put the options to do this in the command field. Like this for the Desktop directory:

gnome-terminal --working-directory Desktop
like image 30
ergosys Avatar answered Nov 03 '22 17:11

ergosys