Hosting Operations
Read-only, can be slowVerify a SHA256 Checksum Manifest
You need to confirm files still match a saved SHA256 manifest.
Command
sha256sum -c checksums.sha256
Before you run this
System impact: Read-only. Can create load on large logs, directories, filesystems, or process tables.
When not to use it: Do not use it if the checksum manifest came from an untrusted source.
Expected output
One OK line per verified file.
System impact
Read-only, can be slow. Nothing changes. The command reads files and checks hashes against the manifest.
Scope this to the smallest useful path or service on busy systems.
Recovery / rollback: no state is changed.
When to use it
Use after copying, restoring, or unpacking files from a backup.
When not to use it
Do not use it if the checksum manifest came from an untrusted source.
next steps
Related commands
Verify Restored File Checksums
A restore is not validated until the bytes match.
BACKUP_ROOT=/srv/backups/site RESTORE_SANDBOX=/tmp/linuxoneliners-restore/full && rm -rf "$RESTORE_SANDBOX" && mkdir -p "$RESTORE_SANDBOX" && tar -xf "$BACKUP_ROOT/2026-06-25/site.tar" -C "$RESTORE_SANDBOX" && (cd "$RESTORE_SANDBOX" && sha256sum -c CHECKSUMS.sha256)
Create a SHA256 Checksum Manifest
A file list says what exists; checksums say whether bytes match.
sha256sum source/app/config.yml source/content/index.md source/content/about.md source/assets/logo.svg
Compare Artifact Checksums
Verify two artifact copies match before blaming deployment code.
sha256sum artifacts/app.tar.gz releases/current/app.tar.gz
Compare Source and Backup File Lists
A backup can be missing files and still look plausible at a glance.
comm -3 <(find source -type f | sed 's#^source/##' | sort) <(find backup -type f | sed 's#^backup/##' | sort)
Check Whether Expected Build Outputs Exist
The deploy failed because the build never produced the file.
find artifacts/dist -maxdepth 2 -type f | sort
Study mapping
Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.