sha1sum — Print or check SHA-1 digests
| Use Case | Command | Description |
|---|---|---|
| Compute SHA-1 checksum of a file | sha1sum file.txt | Output the 160-bit SHA-1 checksum for file.txt |
| Check SHA-1 checksums from a file | sha1sum -c checksums.sha1 | Read and verify checksums from checksums.sha1 (same as md5sum -c) |
| Compute SHA-1 checksums for all files in directory | sha1sum * | Compute and display checksums for all files in current directory |
sha1sum computes a 160-bit checksum for each specified FILE. The usage and options of this command are precisely the same as for md5sum. 🔗 See md5sum invocation for details.
💡 Note: The SHA-1 digest is more reliable than a simple CRC (provided by the cksum command) for detecting accidental file corruption, as the chances of accidentally having two files with identical SHA-1 are vanishingly small. However, it should not be considered secure against malicious tampering: although finding a file with a given SHA-1 fingerprint is considered infeasible at the moment, it is known how to modify certain files, including digital certificates, so that they appear valid when signed with an SHA-1 digest. For more secure hashes, consider using SHA-2, or the newer b2sum command. 🔗 See sha2 utilities and b2sum invocation for details.
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-08 12:28 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format