Aside from aliasing and links, is there an easy way in Linux to tag commonly used directories and to navigate to a commonly used directory from the terminal.
To be clear the disadvantages I see with alternative approaches, and why I want a bookmark/favorites like system:
alias
Cons:
Too specific (every new favorite requires a new alias...although you could in theory make an alias that echo append your dir as a new alias, which would be sort of clever). Can't nest favorites in folders (can't think of a simple solution to this outside of heavy config scripting).
links
Cons:
Clutter directory make ls a headache.
pushd/popd
Cons:
Non-permanent (without shell config file scripting), can't nest favorites in directories, etc.
Granted I have multiple ideas for making my own non-standard solution, but before I have at it I wanted to get some perspective on what's out there and if there is nothing, what is a recommended approach.
Does anyone know of such a favorites/bookmark-like terminal solution?
$CDPATH; this could be combined with one or more of the other solutions, for example to reduce the clutter from links. by hiding them in a dot-directory and putting that in$CDPATH. – geekosaur Apr 25 '12 at 20:31setdoesn't do what you think it does. (Tryecho $1in the shell where you did that.) It's justCDPATH=whatever. – geekosaur Apr 25 '12 at 20:41cd toolsif I had a folder named~/<dir>/<dir>/tools/, but no luck. – Jason R. Mick Apr 25 '12 at 20:45CDPATHto, for that? (Beware that~is not always expanded in such cases; you may want to use$HOMEinstead.) – geekosaur Apr 25 '12 at 20:50