Changing directories

Use the cd command to change from one working directory to another. If you have permission to access the directory, you can move to any directory in the file system by using cd and the path name for the directory:
cd pathname
See Handling security for your files for more information on directory permissions.
When you want to go to your home directory, just enter the cd command with no arguments:
cd
To change to a directory other than your home directory, you must supply the path name. For example, if Alice Smith is working in her home directory (smitha) and she wants to switch to her projectb directory, she types the relative path name:
cd projectb
To check that she has changed directories, Alice types pwd and the system displays:
/u/smitha/projectb