Having some problems googling this one because I'm not sure what the search term is. Shell scripting or terminal feature. What is the best way to streamline access to frequently used directories. Normally when I start a terminal it defaults to my home directory but sometimes I ike to open several terminal windows, the problem is I'm typing the cd /.../directory in each one multiple times and I need a way to not have to do this. What is the best way or just provide the search terms I could use to read about it online. Thank you
|
feedback
|
migrated from stackoverflow.com Nov 11 '11 at 3:08
This question came from our site for professional and enthusiast programmers.
|
Create a symbolic link in your home directory:
| |||
|
feedback
|
|
Add a variable in your .bashrc:
to use:
| |||
|
feedback
|
|
Set the CDPATH variable: it contains additional directories to be searched when you run | |||
|
feedback
|
|
You could use a bookmarks for the shell, e.g. bookmarks.sh. | |||
|
feedback
|
|
You can also take advantage of CDPATH variable. And you could define a bash
And recent bash or even better zsh may permit you things like
Assuming you have only one deeply nested | |||
|
feedback
|
|
Add an alias in your .bashrc
to use:
| |||
|
feedback
|

aliasfor each directory that you very often use. Also usecd -to go back to last directory that you accessed – Prince John Wesley Nov 10 '11 at 17:04