Options (1)
-c, --checkbooleanRead a file of SHA checksums and filenames and verify all files have matching checksums (the algorithm will be automatically detected)
Example:
shasum {{[-c|--check]}} {{path/to/file}}Examples (8)
Calculate the SHA1 checksum for one or more files
shasum path/to/file1 path/to/file2 ...Calculate the SHA checksum for one or more files with the specified algorithm
shasum --algorithm 1|224|256|384|512|512224|512256 path/to/file1 path/to/file2 ...Calculate and save the list of SHA256 checksums to a file
shasum --algorithm 256 path/to/file1 path/to/file2 ... > path/to/file.sha256Read a file of SHA checksums and filenames and verify all files have matching checksums (the algorithm will be automatically detected)
shasum [-c|--check] path/to/fileOnly show a message for missing files or when verification fails
shasum [-c|--check] --quiet path/to/fileOnly show a message when verification fails, ignoring missing files
shasum --ignore-missing [-c|--check] --quiet path/to/filemade by @shridhargupta | data from tldr-pages