popd
TLDR
Pop directory from stack
$ popd
Pop and go to Nth directory$ popd +[N]
Pop without changing directory$ popd -n
Show directory stack$ dirs
SYNOPSIS
popd [options] [+N|-N_]
DESCRIPTION
popd removes directories from the stack. Returns to previous directory.
The tool complements pushd. Manages directory history.
popd navigates directories.
PARAMETERS
+N
Remove Nth entry from left.-N
Remove Nth entry from right.-n
Suppress directory change.
CAVEATS
Shell built-in. Works with pushd and dirs.
HISTORY
popd is a shell built-in for directory stack management.


