01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CD (I) CD (I)<br />

NAME<br />

cd - change working directory<br />

SYNOPSIS<br />

cd [ directory ]<br />

DESCRIPTION<br />

If directory is not specified, the value of shell parameter $HOME<br />

is used as the new working directory. If directory specifies a complete<br />

path starting with /, ., . • , directory becomes the new working<br />

directory. If neither case applies, cd tries to find the designated<br />

directory relative to one of the paths specified by the<br />

$CDPATH shell variable. $CDPATH has the same syntax as, and<br />

similar semantics to, the $PATH shell variable. Cd must have<br />

execute (search) permission in directory .<br />

Because a new process is created to execute each command, cd<br />

would be ineffective if it were written as a normal command;<br />

therefore, it is recognized and internal to the shell.<br />

SEE ALSO<br />

pwd(l), sh(l), chdir(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!