Skip to Content
gnux

-c, --check

Read checksums from the FILEs and check them.

An option of sha256sumx.

Usage

sha256sumx -c [FILE]...
sha256sumx --check [FILE]...

Details

ShortLongValueDefaultMeaning
-c--checknoneread checksums from the FILEs and check them

Examples

Verify the download against the publisher's checksum file, which lists other files too

sha256sumx -c --ignore-missing sha256.sums
Output
ubuntu-24.04-desktop-amd64.iso: OK

In CI, fail the build when a vendored file was changed by hand

sha256sumx -c --status vendor.sha256sums || { echox 'vendored files changed' >&2; exit 1; }

Re-check a large archive set and show only what no longer matches

sha256sumx -c --quiet sha256.sums
Output
notes.txt: FAILED
sha256sumx: WARNING: 1 computed checksum did NOT match

Refuse a checksum list with malformed lines instead of skipping them

sha256sumx -c --strict -w sha256.sums

Help in the terminal

gnux help sha256sumx --check

On this page