To go to previous working directory is Linux is a frequently occurring need. These are two ways to achieve it:
- Using dash (-)
$ cd -
- Using env variable OLDPWD
$ cd $OLDPWD
To go to previous working directory is Linux is a frequently occurring need. These are two ways to achieve it:
$ cd -
$ cd $OLDPWD