Terminal Dojo
Help العربية Sign inGet started

Command library / sha256sum

sha256sum

BashDraft — pending expert review4 practice missions

Compute or verify SHA-256 file checksums

Prints the SHA-256 hash of one or more files — a fingerprint that changes if even one byte does. Use it to confirm a download wasn't corrupted or tampered with, to verify a whole set of files against a checksums list with -c, or to prove forensic evidence hasn't changed since it was collected.

Practice sha256sum

Usage

sha256sum [file...]
sha256sum -c checksums-file

Options and flags

Examples

Common mistakes

sha256sum -check checksums.txt sha256sum -c checksums.txt

A single dash takes single letters bundled together (-c), not a spelled-out word — that needs two dashes: --check.

Related commands

grep