From a POSIX shell `$OLDPWD` holds the name of the previous working directory:cd /tmpecho You are here: $PWDecho You were here: $OLDPWDcd $OLDPWD
#Unix #Linux #Shell #cd
@YesIKnowITYou can also just `cd -`
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.