Hacker News new | ask | show | jobs
by miratrix 5597 days ago
You can also use the "dirs" command (I think part of bash as well) that tells you the state of the stack. If you set the -v option, you can get the depth of different directories, and you can just do pushd +N to jump to the specific directory.
1 comments

funny- I don't see man pages (nor info pages) for pushd, popd, or dirs. What am I missing about the documentation?
They're shell built-ins, so use "man bash" to read about them.
To only display information about a specific command, you can also use

    help <command>
Awesome. Thanks.