The cd command

The cd command is used to change your current working directory.

To see your current working directory, use the command pwd:

stealth% pwd
/stealth/users/ariel/Mail

To change the current working directory, use the command cd directory-name:

stealth% cd stuff
stealth% pwd
/stealth/users/ariel/Mail/stuff

You can use a full pathname for the directory name, or a relative pathname, as we did in the above example.

To change the current working directory to your home directory, use the command cd without any arguments:

stealth% cd
stealth% pwd
/stealth/users/ariel

More information about the cd command is available by using the command man cd.