What it is
A checksum is a fixed-length digest computed from a file's exact bytes; comparing a freshly computed checksum against the one an official source publishes confirms the file wasn't corrupted or tampered with in transit.
When to use it
Reach for this after downloading an OS image, release binary, or dataset that ships a SHA256SUMS/checksums.txt file, when auditing a batch of files against an inventory, or whenever you need to double-check a hash instead of trusting one an AI assistant typed out (AI-generated checksums are not computed from real bytes and cannot be trusted).
Gotchas & limits
Checksum parsing supports the common GNU ("<hash> <filename>") and BSD ("SHA256 (<filename>) = <hash>") formats only, not every vendor's custom layout. Files are read in chunks, so large files are fine, but multi-gigabyte files still take time.