cd
This command enables the user to modify from the present working directory to a new directory.
Syntax
cd [directory]
where directory is the name of the directory to be modified to. Let us suppose the present directory is /user/sunil
The cd command has to be used to move to the other directory with the path name as follows
# cd /usr/ajay
Either the relative pathname or the absolute pathname can be used to change directories.
Note:
cd if it does not exist cannot perform the requested directory change.
cd will always take the user without any argument to his/her HOME directory.
cd ../ It takes the user to the parent (previous directory) that is one level up.
cd ../../ It takes the user to the parent's parent directory that is two levels up.