Cynosure.X International

Library: GNU bash Command Reference (Darwin 9.0)

pushd

pushd: pushd [dir | +N | -N] [-n]

Adds a directory to the top of the directory stack, or rotates
the stack, making the new top of the stack the current working
directory.  With no arguments, exchanges the top two directories.

+N	Rotates the stack so that the Nth directory (counting
from the left of the list shown by `dirs', starting with
zero) is at the top.

-N	Rotates the stack so that the Nth directory (counting
from the right of the list shown by `dirs', starting with
zero) is at the top.

-n	suppress the normal change of directory when adding directories
to the stack, so only the stack is manipulated.

dir	adds DIR to the directory stack at the top, making it the
new current working directory.

You can see the directory stack with the `dirs' command.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

13 Users Online

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2017. All Rights Reserved.