$OLDPWD  –  Previous Working Directory

$OLDPWD contains the previous working directory set by the cd builtin.

BashSupport Pro is a Bash IDE with support for $OLDPWDtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal