Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cd(1SH) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

break(1sh)

cd(1csh)

continue(1sh)

csh(1csh)

echo(1sh)

eval(1sh)

exec(1sh)

exit(1sh)

export(1sh)

hash(1sh)

login(1)

pwd(1sh)

read(1sh)

readonly(1sh)

return(1sh)

set(1sh)

sh(1sh)

shift(1sh)

test(1sh)

times(1sh)

trap(1sh)

type(1sh)

ulimit(1sh)

umask(1sh)

unset(1sh)

wait(1sh)

chdir(2)

execve(2)



CD(1SH)                 COMMAND REFERENCE                 CD(1SH)



NAME
     cd, chdir - change the current directory (sh built-in)

SYNOPSIS
     cd [ directory ]

DESCRIPTION
     Cd changes the current directory to directory.  The value of
     the environment variable HOME is used if no directory is
     given.

     The environment variable CDPATH specifies the directory
     search path, which is a colon-separated list of directories.
     The default value of CDPATH is the null string, which
     specifies that only the current directory is to be searched.
     The current directory may be specified anywhere in the
     search path by either a null entry or the entry of a dot
     (.).

     If the specified directory contains a slash (/), the
     directory search path is ignored.

     The shell command chdir is the same as cd.

EXAMPLES
     The following example changes the current directory to /bin:



          cd /bin


     This means that references to files in /bin can be made by
     the base name of the file rather than /bin/name.

VARIABLES
     CDPATH         Colon-separated list of directories to search
                    for the named directory.

     HOME           The default directory to change to.

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [NP_ERR]       An error occurred that was not a system
                    error.  Execution terminated.

CAVEATS
     In shell scripts, a failed cd causes the shell script to be
     terminated.





Printed 10/17/86                                                1





CD(1SH)                 COMMAND REFERENCE                 CD(1SH)



     In csh(1csh), the shell variable cdpath is slightly
     different from CDPATH. For more information, see cd(1csh).

SEE ALSO
     break(1sh), cd(1csh), continue(1sh), csh(1csh), echo(1sh),
     eval(1sh), exec(1sh), exit(1sh), export(1sh), hash(1sh),
     login(1), pwd(1sh), read(1sh), readonly(1sh), return(1sh),
     set(1sh), sh(1sh), shift(1sh), test(1sh), times(1sh),
     trap(1sh), type(1sh), ulimit(1sh), umask(1sh), unset(1sh),
     wait(1sh), chdir(2), execve(2).













































Printed 10/17/86                                                2





































































%%index%%
na:72,94;
sy:166,110;
de:276,919;
ex:1195,291;
va:1486,233;
rv:1719,244;
ca:1963,146;2253,226;
se:2479,859;
%%index%%000000000141

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