Absolute Path : Path of the file or directory from the root directory (/)
Relative Path : Path related to the present working directory
-
cd /etc --> Will change from current directory to /etc Here we are giving absolute path.
-
cd gdb --> Will change to gdb folder present in /etc Here we are giving relative path
-
cd --> Will change to the home directory
-
cd .. --> Will move back to the parent directory
-
cd - --> Will switch to the old directory
-
cd ~ --> Will move to the home directory $ cd ~/Linux_System_Prog