sha1sum - Linux Command - Unix Command

Man using laptop computer
PhotoAlto/Sigrid Olsson / Getty Images

Name

shasum - compute and check SHA1 message digest 

Synopsis

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

Description

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

-b--binary

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

-c--check

check SHA1 sums against given list

-t--text

read files in text mode (default)

The Following Two Options Are Useful Only When Verifying Checksums:

--status

don't output anything, status code shows success

-w--warn

warn about improperly formated checksum lines

--help

display this help and exit

--version

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.

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