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.txtTry it
Run pwd and read notes/first.txt, then cd to / and try the same relative path again.