SHA256SUM(1)

πŸ“¦
version 9.10 Β· 5 versions
, in ubuntu stonking

πŸ’– SHA256SUM β€” compute and check SHA256 message digest πŸ’–

okay bestie, gather round, because this one is iconic and also extremely useful and also an elder. it's sha256sum, it lives in the GNU coreutils family, and it's the legacy interface to the cksum utility. so like, it's the cool older sibling that still shows up to every family dinner. 🫢


✨ SYNOPSIS ✨

sha256sum [OPTION]... [FILE]...

🌸 DESCRIPTION 🌸

What does it do? It prints or checks SHA256 (256-bit) checksums. that's the whole vibe. cryptographic fingerprints for your files, and it will absolutely tell you if something got messed with. no cap. πŸ”₯

If you give it no FILE at all, or if FILE is literally just -, it reads from standard input. so pipe away, gorgeous. πŸ¦‹

Okay now the options, and there are a bunch, so buckle up. every single one is listed, I am not skipping a single crumb. πŸ’…

  • -b, --binary β€” read in binary mode ✨
  • -c, --check β€” read checksums from the FILEs and check them πŸ‘‘ this is the "verify my stuff" mode
  • --tag β€” create a BSD-style checksum πŸŽ€
  • -t, --text β€” read in text mode (default) 🌸
  • -z, --zero β€” end each output line with NUL, not newline, and disable file name escaping 🌈 this one is very "for the scripts" of it

πŸ’œ the following five options are useful only when verifying checksums πŸ’œ

gonna be so real, these five only matter when you're in check mode. exam season options only. πŸ“š

  • --ignore-missing β€” don't fail or report status for missing files πŸ™ˆ
  • --quiet β€” don't print OK for each successfully verified file πŸ’€ (silence, but make it verification)
  • --status β€” don't output anything, status code shows success 🎯 all the info, none of the yapping
  • --strict β€” exit non-zero for improperly formatted checksum lines 😀
  • -w, --warn β€” warn about improperly formatted checksum lines 🚨

⭐ the classic two, always on the menu ⭐

  • --help β€” display this help and exit 🫢
  • --version β€” output version information and exit πŸŽ€

So the sums themselves are computed as described in FIPS-180-2. that's the actual spec, not vibes. ✨

When you're checking, the input should be a former output of this program. like, feed it its own receipts. 🧾 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 a little plot twist that lowkey changes everything: there is no difference between binary mode and text mode on GNU systems. 😌 so on GNU, -b and -t are basically twins. fr fr.


πŸ‘‘ AUTHOR πŸ‘‘

Written by Ulrich Drepper, Scott Miller, and David Madore. absolute legends, we stan. 🩷


🚨 REPORTING BUGS 🚨

Found something broken? Don't suffer in silence, tell the devs:


πŸ” SEE ALSO πŸ”

  • cksum(1) β€” the other one, the original one, go say hi 🫢

Full documentation lives at <https://www.gnu.org/software/coreutils/sha256sum>, or you can get it locally with:

info '(coreutils) sha2 utilities'

πŸ’– legal moment, bestie, pay attention: Packaged by Ubuntu (9.10-1ubuntu2). 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. so like… it's yours to remix, but if it breaks, it's not their problem. πŸ’…

and that's the whole page, GNU coreutils 9.10, August 2026 β€” SHA256SUM(1), out. slay, go hash something. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from