--- layout: page category-page: fs category-title: FileSystem tags: absolute relative path author: Announ Marwan title: Relative paths --- Relative path is defined as path related to the present working directory(pwd).
Suppose I am located in /home/user and I want to change directory to /home/user/Documents.
I can use relative path concept to change directory to Documents.
pwd
  /home/user
cd Documents
pwd
  /home/user/Documents
If you observe, there is a little bit difference between absolute and relative paths: in relative paths there is no "/" at the very beginning.
Meanwhile in an absolute path you have to write "/", in this case it'd be "/home/user/Documents".