.TH cd "" "" Command
.PC "Change directory"
\fBcd\fI directory\fR
.PP
.HS
If no \fIdirectory\fR specified, \fB$HOME\fR is assumed.
The shell executes \fBcd\fR directly.
.HE
The shell
keeps track of the directory in which the user is currently working.
If a command is not specified by a complete path name beginning with
\*(Ql/\*(Qr, the shell
prefixes it with the name of the current working directory.
.B cd
changes the current working directory to
.IR directory .
If no
.I directory
is specified, the directory named in the
.B $HOME
environmental variable
becomes the current working directory.
.SH "See Also"
.Xr "commands," commands
.Xr "ksh," ksh
.Xr "pwd," pwd
.Xr "sh" sh
