Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Instead of using cd, pushd, popd, and cdable_vars, and CDPATH, I heard a while ago that there was a tool that "learned" the paths you most frequently navigated to and make shortcuts for those dynamically. Does anyone know what tool I vaguely have in mind?

share|improve this question
Probably this one Dynamic Shortcut Creation with Bash – Basharat Sialvi May 17 '12 at 5:59
up vote 1 down vote accepted

Here's a link from the LinuxJournal with script that would do just this:

share|improve this answer

Add the following to your profile...

alias ycd+='pwd>>$HOME/.ycd_list;sort -u -o $HOME/.ycd_list $HOME/.ycd_list'
alias ycd='select ID in $(<$HOME/.ycd_list);do [ $ID ] && cd $ID;break;done'

Use ycd+ to bookmark a directory and use ycd to navigate betwwen bookmarked directories.

Original post

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.