cd(C) 19 June 1992 cd(C) Name cd - change working directory Syntax cd [ directory ] Description If specified, directory becomes the new working directory; otherwise the value of the shell parameter $HOME is used. The process must have search (execute) permission in all directories (components) specified in the full pathname of directory. 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 recognized and executed by the shell. If the shell is reading its commands from a terminal, and the specified directory does not exist (or some component cannot be searched), spelling correction is applied to each component of directory, in a search for the ``correct'' name. The shell then asks whether or not to try and change directory to the corrected directory name; an answer of n means ``no'', and anything else is taken as ``yes''. The KornShell command, ksh, has extensions to the syntax for cd. Please refer to ksh(C) for more information. Note Wildcard designators will work with the cd command. See also pwd(C), sh(C), chdir(S)