Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > Bash > Back to previous directory in shell cd,$OLDPWD

Back to previous directory in shell cd,$OLDPWD

"cd -" works, it will call $OLDPWD i.e. pathname of the previous working directory.

Any message or comments?

comments powered by Disqus