Mission 307

Absolute and relative path report

Resolve relative names into full canonical paths.

Terminal basics
8 minutes Core Lesson 307 of 360
pwdrealpath
Lesson 307 of 360 0/360 lessons 0/17 missions Terminal basics · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Print the current directory

Run pwd.

pwd
Resolve a relative file

Run realpath README.txt.

realpath README.txt
Resolve a relative directory

Run realpath lab.

realpath lab
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with relating the current directory to canonical paths.

Hint

Start with pwd, inspect the result, then continue in order.

Why it matters

Relating the current directory to canonical paths helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves relating the current directory to canonical paths.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

pwd

Print the current working directory.

realpath <path>

Resolve a path to its canonical simulated location.