With pushd you can bookmark directory locations in a stack datastructure. With popd you can navigate back to them just if you were using a back button in a graphical ui. This can be particular helpful when managing navigation tasks within scripts.
https://opensource.com/article/19/8/navigating-bash-shell-pushd-popd