.TH popd "" "" Command
.PC "Pop an item from the directory stack"
\fBpopd [\fIitem ... \fB]\fR
.PP
.HS
\fBsh\fR only.
.HE
The \*(CO shell
.B sh
maintains an internal ``directory stack'', which is a stack of names of
directories.
You can manipulate this stack should you, for any reason, wish to traverse
a number of directories quickly and efficiently.
.PP
The command
.B popd
pops an item from the directory stack.
If called without an argument, it pops the last item.
Otherwise, it pops the given stack
.IR item s
in the order requested,
where each
.I item
is a positive integer and zero is the top of the stack.
.SH "See Also"
.Xr "commands," commands
.Xr "dirs," dirs
.Xr "pushd," pushd
.Xr "sh" sh
