Restore copy verification
Copy a restore candidate and compare it with its source.
Understand the pattern
Verifying a copied restore candidate helps operators explain what they know before they change anything.
cp- Copy a file to a new location, leaving the original in place.
Confirm the destination before replacing a file. This lab supports file copies, not every cp option.
diff- Compare two text files; a difference is a meaningful nonzero status, not necessarily an execution error.
Status 1 means differences for diff; shell status must be interpreted in command context.
sha256sum- Compare content digests to detect byte changes, not to establish who authored the file.
A checksum detects changes only relative to a trusted expected digest.
Worked example and expected result
$ cp restore/index.html lab/restore-candidate.html(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
$ diff restore/index.html lab/restore-candidate.html(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
$ sha256sum lab/restore-candidate.html461e71705c1a1643f91a286005d2017f902347ac41c738e60461bf7a700cf741 /home/learner/lab/restore-candidate.html
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Symlink chain auditTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.