Knowledge base dedicated to Linux and applied mathematics.
Home > Linux > Bash > Back to previous directory in shell cd,$OLDPWD
Sunday 10 March 2013, by Nadir Soualem
"cd -" works, it will call $OLDPWD i.e. pathname of the previous working directory.
This website was useful to you? Then it's a good reason to buy me a coffee. It will give me the energy and motivation to continue this development. Thank you !