What is an absolute path ?

Undraw File Manager Re Ms29

What is an absolute path ?

About

A path is absolute when it starts with a root (prefix).

It contains all the information needed to locate the file.

Inside a file system, the absolute path is the file identifier.

Example of an absolute path vs a relative path

Absolute path:

/home/username/readme

This is an absolute path because it starts with a forward slash /. This character is the root character on a Linux system.

Relative path:

The below path is a relative path because it does not start with any prefix (root) character

username/readme





Discover More
Undraw File Manager Re Ms29
File System - Path

in a file system. A file is identified by its path through the file system. A file path is a hierarchical URI where: scheme is the scheme that represents the file system such as: file (default)...



Share this page:
Follow us:
Task Runner