What Is Relative Path?

September 18, 2023

A relative path is the path to a file or a directory that starts from the current location in the hierarchy of the filesystem. For example, in UNIX-based systems, the /examples/file.txt path refers to the file.txt located in the examples subdirectory of the current directory. Relative paths are often used for efficiency and the ease of maintenance.

See also What Is Absolute Path?


Anastazija
Spasojevic
Anastazija is an experienced content writer with knowledge and passion for cloud computing, information technology, and online security. At phoenixNAP, she focuses on answering burning questions about ensuring data robustness and security for all participants in the digital landscape.