Filesystem paths

Distinguish absolute and working-directory-relative paths.

Beginner

Lesson goal

Distinguish absolute and working-directory-relative paths.

How it works

The tree starts at /. A path without a leading slash is resolved from the working directory. ~ denotes the home directory in shell syntax.

pwd
ls
cat notes/first.txt

Try it

Run pwd and read notes/first.txt, then cd to / and try the same relative path again.

Check your understanding

Why did the relative path stop working?

Next dayAll lessons
Search Linux DNA

DNA / GUIDANCE

Tux

Hi! Choose your goal and I’ll guide you to the right section.

Local guidance, no external AI or data collection.