relative path

A file path given from the current directory, such as site/index.html, rather than from the root of the filesystem.

In more detail

.. means the parent directory and . the current one, so the same relative path points at different places depending on where you are. An absolute path starts with /, such as /srv/www, and always means the same place.

Examples

The course keeps every playbook path, such as site/index.html, relative to a temporary workspace so examples cannot touch the rest of your machine.
cat notes/todo.md
cat ../work/notes/todo.md
git remote add origin ../server.git

Related terms

Taught in

References