I do this too often:
$ pwd /a/long/long/way/from/anywhere $ cd # oops - meant to tab-complete something /home/$USER
cd defaulting to $HOME be disabled?
In bash, if you accidentally change to the wrong directory, you can go back to the previous directory with:
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.