Cd Command

Overview

Changes working directory.

syntax:cd [name]
arguments: name If a directory name is given, changes to shell's working directory to name. If not, changes to [home]. If name is '-' it is interpreted as the previous working directory. If name is not a subdirectory of the current directory (and does not begin with '/', './', or '../'), each component of the variable [cdpath] is checked to see if it has a subdirectory name. Finaly, if all else fail but name is a shell variable whose value begins with '/', then this is tried to see if it is a directory.
options: (none)

Error Conditions

No Error Conditions defined

Return Codes

0Success
1Error

Where to go next?

Copyright © 1999 Design & Test Center