SHA1SUM(1)

✨ SHA1SUM(1) ✨

okay bestie, pull up a chair because we're talking about sha1sum, a User Commands girly from the GNU coreutils house πŸ’– this is the manual page for her, and yes she is iconic, yes she is legacy, yes she still eats.


πŸ’… NAME πŸ’…

sha1sum β€” compute and check SHA1 message digest πŸ¦‹


🌸 SYNOPSIS 🌸

sha1sum [OPTION]... [FILE]...

✨ DESCRIPTION ✨

So basically she prints or checks SHA1 (160-bit) checksums. That's the whole gig. She's the legacy interface to the cksum(1) utility, meaning she's the OG cousin and cksum is the new main character, but we still love her fr fr.

If you give her no FILE, or if FILE is literally just -, she reads from standard input. no notes, that's just how she rolls 🫢


πŸŽ€ OPTIONS πŸŽ€

  • -b, --binary β€” read in binary mode
  • -c, --check β€” read checksums from the FILEs and check them
  • --tag β€” create a BSD-style checksum
  • -t, --text β€” read in text mode (this is the default, bestie)
  • -z, --zero β€” end each output line with NUL, not newline, and disable file name escaping

🌈 the five options that only matter when you're verifying checksums 🌈

these five are lowkey useless unless you're in check mode, iykyk:

  • --ignore-missing β€” don't fail or report status for missing files
  • --quiet β€” don't print OK for each successfully verified file
  • --status β€” don't output anything, status code shows success
  • --strict β€” exit non-zero for improperly formatted checksum lines
  • -w, --warn β€” warn about improperly formatted checksum lines

πŸ’– the lil helper options πŸ’–

  • --help β€” display this help and exit
  • --version β€” output version information and exit

🧚 THE TEA ON HOW THE SUMS WORK 🧚

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 space, a character indicating input mode ('*' for binary, ' ' for text or where binary is insignificant), and name for each FILE.

and here's the gag: there is no difference between binary mode and text mode on GNU systems. so all that -b vs -t drama? on GNU it's giving absolutely nothing πŸ’€

πŸ’€ BUGS πŸ’€

Do not use the MD5 algorithm for security related purposes. Instead, use an SHA-2, SHA-3, or BLAKE2 algorithm, implemented in the cksum(1) program. like seriously bestie, MD5 for security is not the vibe, that's a whole red flag 🚩


πŸ‘‘ AUTHOR πŸ‘‘

Written by Ulrich Drepper, Scott Miller, and David Madore. legends only, no cap.


πŸ“’ REPORTING BUGS πŸ“’

Found a bug? tell the girlies:


Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


πŸ¦‹ SEE ALSO πŸ¦‹

Full documentation <https://www.gnu.org/software/coreutils/sha1sum> or available locally via: info '(coreutils) sha1sum invocation'


GNU coreutils 9.12 β€” September 2026 🌸 and that's the whole page bestie, mwah, go checksum something and stay hydrated πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from