Absolute and Relative Paths
A path identifies the location of a file or directory.
Absolute Paths
An absolute path always starts from the root directory
/
.It is valid from anywhere on the file system, use it when certain of the location.
Sometimes relative path can be longer than the absolute path, so an absolute path is prefered.
Relative Paths
A relative path starts from the current directory to the resource.
Is generally shorter than an absolute path, used for similar local directory structures, for projects.
Last updated