popd built-in command for tcsh: Pop the directory stack

Format

popd [-p] [-l] [-n|-v] [+n]

Description

popd without options, pops the directory stack and returns to the new top directory. With a number +n, discards the n'th entry in the stack. All forms of popd print the final directory stack, just like dirs. The pushdsilent shell variable can be set to prevent this.

Options

–l
Output is expanded explicitly to home or the path name of the home directory for the user.
-n
Entries are wrapped before they reach the edge of the screen.
-p
Overrides pushdsilent.
-v
Entries are printed one per line, preceded by their stack positions.

If more than one of -n or -v is given, -v takes precedence.

Related information

tcsh