Bash - Directory stack
Table of Contents
About
The directory stack permits to navigate and come back in the directory tree.
Management
Display
Add
Directories are added to the list with the pushd command;
Rotate
See pushd
Remove
The popd command removes entries from the list.
Example
Go away and returns
# we are now in /
pushd /aDir/
# we are now in /aDir/
popd
# we are now back in the starting current directory /