Compute SHA256 message digests.

Synopsis

sha256sum [OPTION]... [FILE]...

Description

Prints the SHA256 checksum of each FILE, or of standard input if none is given.

Options

-c, --check Read checksums from FILEs and check them.

--help Display help and exit.

Examples

$ sha256sum file.txt

Print the SHA256 checksum of file.txt.

$ sha256sum -c checksums.sha256

Verify files against saved checksums.

Notes

Preferred over md5sum/sha1sum for integrity checks where collision resistance matters.

See Also

md5sum, sha1sum