Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cd(1) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pwd(1)

sh(1)

csh(1)

chdir(2)



     cd(1)                      DG/UX 4.30                       cd(1)



     NAME
          cd - change working directory

     SYNOPSIS
          cd [ directory ]

     DESCRIPTION
          If directory is not specified, the value of shell parameter
          $HOME is used as the new working directory (also $home in
          csh).  If directory specifies a complete path starting with
          /, ., or .., 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 in csh).  $CDPATH has the
          same syntax as, and similar semantics to, the $PATH shell
          variable ($path in csh).  Cd must have execute (search)
          permission in directory.

          Because a new process is created to execute each non-built-
          in command, cd would be ineffective if it were written as a
          normal command; therefore, it is a built-in command for both
          the shell and the C-shell.


     EXAMPLES
          $ pwd

          /usr/user1
          $ cd workdir
          $ pwd
          /usr/user1/work_dir
          $

          The above example changes your current directory to the
          directory named "work_dir."  "Work_dir" is located below the
          directory /usr/user1.  The string, "..", can be substituted
          to indicate the directory above the current directory.  This
          string can be repeated on the same command line to go up
          several levels.

     SEE ALSO
          pwd(1), sh(1), csh(1).
          chdir(2) in the Programmer's Reference for the DG/UX System,
          Volume 1











     Licensed material--property of copyright holder(s)         Page 1



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