In this post, I will share a useful tip to switch back to the last working directory. Using this tip you can navigate back to the last working directory. You don’t need to type the long directory path or copy-paste it anymore.
Switch back to the last working directory
$ cd -