quicker way to open an ubuntu terminal in a particular directory [closed]
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
开发者_开发问答 Improve this questionHow can I set up some quick access ubuntu terminals to directories other than the user's home?
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").
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.
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.
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
Install Nautilus Actions Configuration from Software Center. Then go to Systems->Preferences->Nautilus Actions Configurations and then create an action named "Open Terminal here" for folders with the command
gnome-terminal
and parameter as
--working-directory=%d
After that, you can right-click on any folder and get a terminal window right away.
精彩评论