shasum

Calculate SHA cryptographic checksums. More information: https://manned.org/shasum.

shasum path/to/file1 path/to/file2 ...

shasum --algorithm 256 path/to/file1 path/to/file2 ...

shasum --algorithm 512 path/to/file1 path/to/file2 ...

command | shasum

shasum --algorithm 256 path/to/file1 path/to/file2 ... > path/to/file.sha256

shasum --check path/to/file

shasum --check --quiet path/to/file

shasum --ignore-missing --check --quiet path/to/file