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, typingcdand repeatedCtrl+rto get location you want.. or add"\e[A": history-search-backwardto~/.inputrcand then you could typecdfollowed by repeateduparrow to get location you want – Sundeep Jun 04 '16 at 15:15