Mission 316

Symlink chain audit

Create a link, inspect its stored target, and resolve the final path.

Files and paths
8 minutes Admin Lesson 316 of 360
lnreadlinkrealpath
Lesson 316 of 360 0/360 lessons 0/17 missions Files and paths · 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.

Create the audit link

Run ln -s /home/learner/README.txt lab/readme-audit-link.

ln -s /home/learner/README.txt lab/readme-audit-link
Read the stored target

Run readlink lab/readme-audit-link.

readlink lab/readme-audit-link
Resolve the final path

Run realpath lab/readme-audit-link.

realpath lab/readme-audit-link
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with auditing symbolic-link targets.

Hint

Start with ln -s /home/learner/README.txt lab/readme-audit-link, inspect the result, then continue in order.

Why it matters

Auditing symbolic-link targets helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves auditing symbolic-link targets.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

realpath <path>

Resolve a path to its canonical simulated location.

readlink <link>

Inspect a simulated symbolic link target.

ln -s <target> <link>

Create a simulated symbolic link.