popd
Restore the previous value of the current directory.
SYNTAX
popd [-p] [-l] [-n|-v] [+n]
OPTIONS
The -l, -n and -v flags have the same effect on popd as
on dirs. (+)
+n Remove the Nth directory (counting from the left of the list
printed by dirs), starting with zero.
The pushdsilent shell variable can be set to prevent this
and the -p flag can be given to override pushdsilent
-n Suppress the normal change of directory when removing directories from
the stack, so that only the stack is manipulated.
Notes
Without arguments, pops the directory stack and returns to the new top directory.
all forms of popd print the final directory stack
su uses the environment variables: HOME, PATH, TERM and USER.
popd is a tcsh shell command.
"Half a pound of tuppenny rice, Half a pound of treacle, that's the way the money goes, Pop! goes the weasel"
Related commands:
pushd - Save and then change the current directory
Equivalent BASH command:
popd - Restore the previous value of the current directory