Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cd(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                    cd(1)



        _________________________________________________________________
        cd                                                        Command
        change working directory
        _________________________________________________________________


        SYNTAX

        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




        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                    cd(1)



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




















































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



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