The environmental variable in $PWD
has the current working directory. Is there a variable that contains the previous directory? If there is not, how might one be created?
I think this could be useful.
The environmental variable in $PWD
has the current working directory. Is there a variable that contains the previous directory? If there is not, how might one be created?
I think this could be useful.
Yes, there is.
man bash
will lead you to