Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pwd(1)

sh(1)

chdir(2)

CD(1)                                SysV                                CD(1)



NAME
     cd - change working directory

SYNOPSIS
     cd [ directory ]

DESCRIPTION
     If directory is not specified, cd uses the value of shell parameter $HOME
     as the new working directory.  If directory specifies a complete path
     starting with a slash (/), a period (.), or two consectutive periods
     (..), directory becomes the new working directory.  If neither case
     applies, cd tries to find the designated directory relative to one of the
     paths specified by the $CDPATH shell variable.  $CDPATH has the same
     syntax as, and similar semantics to, the $PATH shell variable.  cd must
     have execute (search) permission in 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 by, and is internal to, the shell.

EXAMPLES
     To change your working directory to the directory called mydata, type the
     following:

          # cd mydata

     To advance your working directory one level up in the naming hierarchy,
     use this command:

          # cd ..

SEE ALSO
     pwd(1), sh(1).
     chdir(2) in the SysV Programmer's Reference Manual.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026