Cd (DOS / Unix Command)
The cd command (change directory) in the Unix and DOS operating systems, is used to change the current working directory.Note that cd has different effects on different operating systems if given with no arguments. For example, if executed without arguments in DOS, the current working directory is printed. If executed without arguments in Unix, then the user is returned to the home directory.
It is a command which is frequently included built into certain shellss such as the Bourne shell, tcsh, and bash. It can be implemented easily with the POSIX C function chdir().