Last Updated: February 25, 2016
·
641
· alexgorbatchev

CD into last directory in bash

Every day I learn something new about Bash (and forget two other things). Today I learned that cd - will take you into last directory you were in. This is very useful for me because I constantly end up in a wrong place using autocomplete.