sha1sum - Linux Command - Unix Command

Man using laptop computer
PhotoAlto/Sigrid Olsson / Getty Images


shasum - compute and check SHA1 message digest 


sha1sum [OPTION] [FILE]...
sha1sum [OPTION--check [FILE]  


Print or check SHA1 (160-bit) checksums. With no FILE, or when FILE is -, read standard input.


read files in binary mode (default on DOS/Windows)


check SHA1 sums against given list


read files in text mode (default)

The Following Two Options Are Useful Only When Verifying Checksums:


don't output anything, status code shows success


warn about improperly formated checksum lines


display this help and exit


output version information and exit

The sums are computed as described in FIPS-180-1. When checking, the input should be a former output of this program. The default mode is to print a line with checksum, a character indicating type (`*' for binary, ` ' for text), and name for each FILE.  

See Also

The full documentation for shasum is maintained as a Texinfo manual. If the info and shasumprograms are properly installed at your site, the command

info shasum

should give you access to the complete manual.

Use the man command (% man) to see how a command is used on your particular computer.