[0m


CD(1)		    UNIX Programmer's Manual		    CD(1)



[1mNAME
     [0mcd - change working directory

[1mSYNOPSIS
     cd [0m[ _d_i_r_e_c_t_o_r_y ]

[1mDESCRIPTION
     [0m_D_i_r_e_c_t_o_r_y becomes the new working directory.  The process
     must have execute (search) permission in _d_i_r_e_c_t_o_r_y.

     If _d_i_r_e_c_t_o_r_y is omitted the value of the [1m$HOME [0menvironment
     variable (_s_h(1)) or login directory ([1m~[0m) (_c_s_h(1)) is used.

     Because a new process is created to execute each command, _c_d
     would be ineffective if it were written as a normal command.
     It is therefore recognized and executed by the shells.

     In both _c_s_h(1) and _s_h(1) you may specify a list of direc-
     tories in which _d_i_r_e_c_t_o_r_y is to be sought as a subdirectory
     if it does not begin with [1m/[0m, [1m. , [0mor [1m.. [0mIn _c_s_h(1) this list
     is stored in the [1mcdpath [0mvariable (see the man page _c_s_h(1))
     and if the directory is found in the list a _p_u_s_h_d operation
     is performed.  In _s_h(1) the variable [1m$CDPATH [0mis used (see
     _s_h(1)).

[1mSEE ALSO
     [0mcsh(1), sh(1), pwd(1), chdir(2)




























Printed 25/2/94     Revision 1.3 of 21/11/90			1



[0m