sha1sum
Calculate hash for each input file, reading from stdin if none, writing hexadecimal digits to stdout for each input file (md5=32 hex digits, sha1=40, sha224=56, sha256=64, sha384=96, sha512=128) followed by filename. toybox
On Linux
Linux
???sum [-bcs] [FILE]...
-bBrief (hash only, no filename)-cCheck each line of each FILE is the same hash+filename we'd output-sNo output, exit status 0 if all hashes match, 1 otherwiseSeveral platforms
Calculate SHA1 cryptographic checksums.
Calculate the SHA1 checksum for one or more files
sha1sum path/to/file1 path/to/file2 ...IdentifyCalculate and save the list of SHA1 checksums to a file
sha1sum path/to/file1 path/to/file2 ... >path/to/file.sha1IdentifyCalculate a SHA1 checksum from stdin
command | sha1sumIdentifyRead a file of SHA1 checksums and filenames and verify all files have matching checksums
sha1sum --check path/to/file.sha1IdentifyOnly show a message for missing files or when verification fails
sha1sum --check --quiet path/to/file.sha1IdentifyOnly show a message when verification fails, ignoring missing files
sha1sum --ignore-missing --check --quiet path/to/file.sha1IdentifyCheck a known SHA1 checksum of a file
echo known_sha1_checksum_of_the_file path/to/file | sha1sum --checkIdentify