Displays the directory stack.

  • To tidy the output further, we can use:

dirs -v -l. Which provides an output like:

[myuser@myhost Documents]$ dirs -v -l
 0  /home/myuser/Documents

Updated: