CD(1) UNIX Reference Manual CD(1) NNAAMMEE ccdd - change working directory SSYYNNOOPPSSIISS ccdd _d_i_r_e_c_t_o_r_y DDEESSCCRRIIPPTTIIOONN The cd utility changes the working directory to _d_i_r_e_c_t_o_r_y. The _d_i_r_e_c_t_o_r_y is an absolute or relative pathname which becomes the new working directory. The interpretation of a relative pathname by cd depends on the CDPATH environment variable (see below). EENNVVIIRROONNMMEENNTT The following environment variables affect the execution of cd: HOME If ccdd is invoked without arguments, the HOME environment vari- able is checked for a default directory name. If HOME exists and contains a directory name, that directory becomes the new working directory. CDPATH If the _d_i_r_e_c_t_o_r_y operand does not begin with a slash (/) char- acter, and the first component is not dot (.) or dot-dot (..), ccdd searches for the directory relative to each directory named in the CDPATH variable, in the order listed. The new working directory is set to the first matching directory found. An empty string in place of a directory pathname represents the current directory. CCdd will print the pathname of the new work- ing directory if it was an element of CDPATH. See csh(1) for info on environment variables. The ccdd utility exits 0 on success, and >0 if an error occurs. SSEEEE AALLSSOO csh(1), sh(1), pwd(1), chdir(2) SSTTAANNDDAARRDDSS The ccdd function is expected to be POSIX 1003.2 compatible.