As is well known,
cd without an argument changes one's current directory to their home directory. I am wondering if there is any way, after using the
cd command like this, to return to the directory location one was at prior to running
Generalizing, is there any way of returning to a previous directory after one has
cd-ed to another directory? It seems very possible that the answer to these two questions will be the same but in case it isn't I kept them both separate, because the first question is the main one I would like answered.