The cd command changes the working directory.
cd | Change directory to $HOME (see ksh HOME Environment Variable). |
cd directory | Change directory to directory. If directory does not contain a slash, search $CDPATH (see ksh CDPATH Environment Variable). If directory contains a slash, use it as-is. In either case, if directory begins with a tilde (`~'), replace `~/' with $HOME, or `~name' with the HOME directory of user name. |
cd olddir newdir | Change directory to newdir, where newdir is derived by replacing the string olddir in the current directory name with newdir. |
cd - | Change directory to $OLDPWD (see ksh OLDPWD Environment Variable). |
where: