This tutorial explains Linux “sha1sum” command, options and its usage with examples.
Print or check SHA1 (160-bit) checksums. It is commonly used to verify the integrity of files
sha1sum [OPTION] [FILE]…
sha1sum [OPTION] –check [FILE]
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
1. To create a file with an sha1 hash in it, if one isn’t provided execute:
$ sha1sum filename [filename] ... > SHA1SUM
2. To verify the file was downloaded correctly you can execute:
$ sha1sum -c SHA1SUM filename: OK filename...: OK
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.