What is the difference between an absolute path and a relative path in Unix?
S.no | ABSOLUTE PATH | RELATIVE PATH |
---|---|---|
1. | the full path starting at the root directory (/). | Path in relation to the present working directory as the reference. |
2. | Example - /home/math/tutorial | Access the current directory using the command ‘pwd’. Change the directory using ‘cd’. |
BY Best Interview Question ON 11 Apr 2019