Mission 315

Restore copy verification

Copy a restore candidate and compare it with its source.

Files and paths
8 minutes Admin Lesson 315 of 360
cpdiffsha256sum
Lesson 315 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.

Copy the restore candidate

Run cp restore/index.html lab/restore-candidate.html.

cp restore/index.html lab/restore-candidate.html
Compare source and copy

Run diff restore/index.html lab/restore-candidate.html.

diff restore/index.html lab/restore-candidate.html
Hash the copy

Run sha256sum lab/restore-candidate.html.

sha256sum lab/restore-candidate.html
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with verifying a copied restore candidate.

Hint

Start with cp restore/index.html lab/restore-candidate.html, inspect the result, then continue in order.

Why it matters

Verifying a copied restore candidate helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves verifying a copied restore candidate.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

diff <left> <right>

Compare two lab text files.

sha256sum <file>

Print a deterministic training checksum.

cp <src> <dst>

Copy a file.