June 18th 2013 in Bash
I’ve wanted to know if this was possible for ages, and I’ve only just found out it is!
You can navigate back to the directory you’ve just created (or even just referenced) with the following:
$ mkdir -p test/me $ cd !$
Another useful tool is there also, mkdir -p creates a structure of directories, rather than creating one at a time.