absolute path

A path that starts from the top of the file system, such as /home/ana/notes.txt or C:\Users\ana\notes.txt, and so works from anywhere.

In more detail

It names the same file whatever the current directory is. On Linux the leading slash is the root directory, the top of the whole tree, while on Windows an absolute path starts with a drive letter. Scheduled jobs and scripts use absolute paths because they cannot rely on where they are started from.

Example

/tmp/bash-course/work/notes/todo.md

Related terms

Taught in

References