Unix/Linux Go Back    

NetBSD 6.1.5 - man page for cd (netbsd section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

CD(1)				   BSD General Commands Manual				    CD(1)

     cd -- change working directory

     cd directory

     Directory 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

     The following environment variables affect the execution of cd:

     CDPATH  If the directory operand does not begin with a slash (/) character, and the first
	     component is not dot (.) or dot-dot (..), cd 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.  If the new working directory
	     was derived from CDPATH, it will be printed to the standard output.

     HOME    If cd is invoked without arguments and the HOME environment variable exists and con-
	     tains a directory name, that directory becomes the new working directory.

     See csh(1) for more information on environment variables.

     The cd utility exits 0 on success, and >0 if an error occurs.

     csh(1), pwd(1), sh(1), chdir(2)

     The cd command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.

BSD					   June 5, 1993 				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 09:09 AM.