shasum
Calculate SHA cryptographic checksums. tldr-pages
On several platforms
Several platforms
Calculate the SHA1 checksum for one or more files
shasum path/to/file1 path/to/file2 ...IdentifyCalculate the SHA checksum for one or more files with the specified algorithm
shasum --algorithm 1 path/to/file1 path/to/file2 ...IdentifyCalculate a SHA1 checksum from stdin
command | shasumIdentifyCalculate and save the list of SHA256 checksums to a file
shasum --algorithm 256 path/to/file1 path/to/file2 ... >path/to/file.sha256IdentifyRead a file of SHA checksums and filenames and verify all files have matching checksums (the algorithm will be automatically detected)
shasum --check path/to/fileIdentifyOnly show a message for missing files or when verification fails
shasum --check --quiet path/to/fileIdentifyOnly show a message when verification fails, ignoring missing files
shasum --ignore-missing --check --quiet path/to/fileIdentifyCheck a known SHA checksum of a file (Note: two spaces separating checksum and path)
echo 'known_sha_checksum_of_the_file path/to/file' | shasum --checkIdentify