csh cd [ dir ] chdir [ dir ] pushd [ +n | dir] popd [ +n ] dirs [ -l ]
pushd
pushd will push a directory onto the directory stack. With
<no arguments>, exchange the top two elements.
<+n> Rotate the n'th entry to the top of the stack and cd to it. *M*: The 2nd entry is (the first) +1. *U*: Use it to change dir back and forth
<dir> Push the current working directory onto the stack and change to dir.
dirs dirs will print the directory stack, most recent to the left; the first directory shown is the current directory. Constantly changing. *U*: Use pushd whenever you want to keep current dir in stack
popd +n Discard the n'th entry in the stack. *U*: Use it only if you want to discard something, which un- likly to happen.
documented on: Sat 11-07-98 10:57:16