CD(1) DOMAIN/IX Reference Manual (SYS5) CD(1)
NAME
cd - change working directory
USAGE
cd [ directory ]
DESCRIPTION
If directory is not specified, cd uses the value of the
$HOME Shell parameter as the new working directory. If
directory specifies a complete path starting with a slash
(/), a period (.), or two consecutive periods (..), direc-
tory becomes the new working directory. If neither 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 semantics to,
the $PATH Shell variable.
Because a new process is created to execute each command, cd
will be ineffective if written as a normal command; there-
fore, it is recognized by and is internal to the Shell.
EXAMPLES
To change your working directory to directory called mydata,
type the following:
cd mydata
To advance your working directory one level up in the naming
hierarchy, use this command:
cd ..
RELATED INFORMATION
pwd (1), sh (1), chdir (2).
Printed 6/10/85 CD-1