Mission 318

Files and paths bridge

Checkpoint file type, canonical path, inventory comparison, and integrity checks.

Files and paths
8 minutes Capstone Lesson 318 of 360
filerealpathcommsha256sum
Lesson 318 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.

Identify the script

Run file scripts/deploy.sh.

file scripts/deploy.sh
Resolve the script path

Run realpath scripts/deploy.sh.

realpath scripts/deploy.sh
Compare user inventories

Run comm data/users-a.txt data/users-b.txt.

comm data/users-a.txt data/users-b.txt
Hash the script

Run sha256sum scripts/deploy.sh.

sha256sum scripts/deploy.sh
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with combining safe filesystem inspection habits.

Hint

Start with file scripts/deploy.sh, inspect the result, then continue in order.

Why it matters

Combining safe filesystem inspection habits helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves combining safe filesystem inspection habits.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

sha256sum <file>

Print a deterministic training checksum.

file <path>

Identify a simulated file, directory, link, or text format.

realpath <path>

Resolve a path to its canonical simulated location.

comm <left> <right>

Compare two sorted text files line by line.