Check a file's checksum

Bash

Verifies a download actually matches what the publisher signed, rather than trusting the transfer.

sha256sum -c release.tar.gz.sha256

# Comparing by hand:
sha256sum release.tar.gz
echo 'expected-hash-here  release.tar.gz' | sha256sum -c -

More in Security

Random picks