NAME
cd, chdir, pushd, popd, dirs - change working directory
SYNOPSIS
cd [ dir ]
chdir [ dir ]
pushd [ +n | dir]
popd [ +n ]
dirs [ -l ]
DESCRIPTION
If dir is not specified, the C shell built-in cd uses the
value of shell parameter HOME as the new working directory.
If dir specifies a complete path starting with ` / ', ` . ',
or ` .. ', dir becomes the new working directory. If nei-
ther case applies, cd tries to find the designated directory
relative to one of the paths specified by the CDPATH shell
variable. CDPATH has the same syntax as, and similar seman-
tics to, the PATH shell variable. cd must have execute
(search) permission in dir. Because a new process is
created to execute each command, cd would be ineffective if
it were written as a normal command; therefore, it is recog-
nized by and is internal to the C-shell. (See pwd(1),
sh(1), and chdir(2)).
chdir changes the shell's working directory to directory
dir. If no argument is given, change to the home directory
of the user. If dir is a relative pathname not found in the
current directory, check for it in those directories listed
in the cdpath variable. If dir is the name of a shell vari-
able whose value starts with a /, change to the directory
named by that value.
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.
dir Push the current working directory onto the stack and
change to dir.
+n Discard the n'th entry in the stack.
dirs will print the directory stack, most recent to the
left; the first directory shown is the current directory.
With the -l argument, produce an unabbreviated printout; use
of the ~ notation is suppressed.
for more information, use the 'man cd' command.