Search⌘ K
AI Features

Relative and Absolute Paths

Explore the differences between relative and absolute paths, and discover how to efficiently navigate the filesystem using these paths. This lesson helps you gain confidence in moving between directories by specifying locations relative to your current directory or using full filesystem paths.

We'll cover the following...

Relatives paths

So far, we’ve been navigating using relative paths. That means we’ve been specifying the destination relative to our current working directory or our current location on the filesystem. When we’re at the filesystem’s root and type cd var, the var directory is something we can see with the ls command. We and the ...