Skip to Content
gnux

-c, --check

Read checksums from the FILEs and check them.

An option of md5sumx.

Usage

md5sumx -c [FILE]...
md5sumx --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

md5sumx -c --ignore-missing md5.sums
Output
ubuntu-24.04-desktop-amd64.iso: OK

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

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

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

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

Refuse a checksum list with malformed lines instead of skipping them

md5sumx -c --strict -w md5.sums

Help in the terminal

gnux help md5sumx --check

On this page