dirs

Show the directory stack

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Prints the directory stack maintained by pushd and popd; -v numbers the entries so you can jump with cd ~N.

Examples
dirs -vNumbered list · explain & risk-check →
Related
pushd popd
Open the full explainer →More in Files & Archives

Reference text is hand-written and may be incomplete — check man dirs for your version. Test destructive commands on a non-production system first.