cd (change directory) command in Linux is used to change the current working directory.
The syntax of cd command is as follows:
OPTION can be
DIRECTORY is the name of the directory you want to change to. If no directory is specified, the
cd command will change the current working directory to the user’s home directory.
Above command changes to the /home/myuser/mydocs directory on your machine.
Above command changes to the parent directory ( i.e. one directory above from where you are right now )
Above command changes to the current users home directory.