Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cd(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pwd(C)

sh(C)

chdir(S)


 cd(C)                         06 January 1993                          cd(C)


 Name

    cd - change working directory

 Syntax

    cd [ directory ]

 Description

    If specified, directory becomes the new working directory; otherwise the
    value of the shell parameter $HOME is used.  The process must have search
    (execute) permission in all directories (components) specified in the
    full pathname of 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 and executed by the shell.

    If the shell is reading its commands from a terminal, and the specified
    directory does not exist (or some component cannot be searched), spelling
    correction is applied to each component of directory, in a search for the
    ``correct'' name.  The shell then asks whether or not to try and change
    directory to the corrected directory name; an answer of n means ``no,''
    and anything else is taken as ``yes.''

    The KornShell command, ksh, has extensions to the syntax for cd. Please
    refer to ksh(C) for more information.

 Notes

    Wildcard designators will work with the cd command.

    Both ksh(C) and csh(C) recognize cd  ~ to mean change to the home direc-
    tory, as set by $HOME.

 See also

    pwd(C), sh(C) and chdir(S).


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