Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cd(1) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pwd(1)

sh(1)

chdir(2)

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.  If directory specifies a complete path starting with /, ., .., 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 and is internal to the shell. 

EXTERNAL INFLUENCES

International Code Set Support

Single- and multi-byte character code sets are supported. 

EXAMPLES

To change the working directory to a directory at a lower level, type:

cd directoryname

To change the working directory to a directory at the same level, type:

cd ../directoryname

To change from any working directory to the home directory, type:

cd

VARIABLES

$HOME default working directory

$CDPATH directories to search for directory

SEE ALSO

pwd(1), sh(1), chdir(2). 

STANDARDS CONFORMANCE

cd: SVID2, XPG2, XPG3, proposed POSIX.2 FIPS (June 1990)

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

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