I'm running CentOS 7, but hoping there is a general Linux way of doing this.
So you can cd
back and forth between the previous and current directory with this:
cd -
Is there I way can cd
back multiple directories? So I keep going back previous directories instead of just the last one?
Does Linux or bash track your navigation history at all?
Ctrl+r
, typingcd
and repeatedCtrl+r
to get location you want.. or add"\e[A": history-search-backward
to~/.inputrc
and then you could typecd
followed by repeatedup
arrow to get location you want – Sundeep Jun 04 '16 at 15:15