Name
sha1sum
Synopsis
sha1sum [options
] [file
...] sha1sum [options
]--
check [file
]
Compute or check SHA1 160-bit checksums for one or more files. The checksum is computed using the algorithm in FIPS-180-1. Use the saved output of the program as input when checking. See also md5sum.
Options
-b
,--binary
Use binary mode to read files. This is the default on non-Unix systems.
-c
,--check
Check SHA1 sums against the given list.
-
--status
Do not print anything. Instead, use the exit code to indicate success.
-t
,--text
Read files in “text” mode. This is the default on Unix systems.
-w
,--warn
Warn about checksum lines that are not formatted correctly.
Examples
$sha1sum bash-3.0.tar.gz > SHA1SUM
Compute and save checksum $cat SHA1SUM
Show it 3acf1ff4910d4bc863620c7533cbf4858370017b bash-3.0.tar.gz $sha1sum --check < SHA1SUM
Verify it bash-3.0.tar.gz: OK
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.