O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

popd

Synopsis

                  popd [options]

Manipulate the directory stack. By default, remove the top directory and cd to it. If successful, run dirs to show the new directory stack.

Options

+ n

Remove the nth directory in the stack, counting from 0.

- n

Remove the nth entry from the bottom of the stack, counting from 0.

-n

Don’t do a cd when removing directories from the stack.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required