CKSUM(1)

๐Ÿ’– CKSUM(1) โ€” the girlies' guide to checksums ๐Ÿ’–

okay bestie, welcome to cksum, section 1 of the User Commands manual, and honestly? this one's a whole personality. she computes and verifies file checksums, she's been in GNU coreutils forever, and she has opinions. let's get into it ๐Ÿฆ‹


โœจ NAME โœจ

cksum โ€” compute and verify file checksums. that's it, that's the vibe ๐Ÿ’…


โœจ SYNOPSIS โœจ

cksum [OPTION]... [FILE]...

โœจ DESCRIPTION โœจ

so what does she actually do? she prints checksums, or she verifies them. no cap. and by default she's rocking the 32 bit CRC algorithm, which is giving old school but still iconic.

if you give her no FILE at all, or if FILE is literally just -, she reads from standard input. standard input is her comfort zone fr fr ๐ŸŒธ

and listen โ€” mandatory arguments to long options are mandatory for short options too. that's not a suggestion, that's the rules. periodt.

  • -a, --algorithm=TYPE โ€” pick which digest type you wanna use. the full roster is down in DIGEST, keep scrolling babe ๐Ÿ‘‘
  • --base64 โ€” emits base64-encoded digests instead of hexadecimal. she's switching up the aesthetic โœจ
  • -c, --check โ€” reads checksums from the *FILE*s and checks them. this is the verification era ๐ŸŽ€
  • -l, --length=BITS โ€” digest length in bits. okay so the rules here: it must not exceed the max size, and it must be a multiple of 8 for blake2b. for sha2 or sha3 it must be 224, 256, 384, or 512. no in-between, she doesn't do in-between ๐Ÿ’€
  • --raw โ€” emits a raw binary digest, not hexadecimal. feral. unhinged. love that for her ๐Ÿซถ
  • --tag โ€” creates a BSD-style checksum. and btw, this one is the default, so she's already doing it ๐Ÿ’…
  • --untagged โ€” creates a reversed style checksum, without digest type. minimal, no labels, main character energy โœจ
  • -z, --zero โ€” ends each output line with NUL instead of newline, and disables file name escaping. yes really, NUL. she said no newlines today ๐Ÿ™ˆ

๐Ÿงš the following five options are useful only when verifying checksums ๐Ÿงš

  • --ignore-missing โ€” don't fail or report status for missing files. she's being chill about it ๐Ÿ˜Œ
  • --quiet โ€” don't print OK for each successfully verified file. silent but slaying ๐Ÿ”ฅ
  • --status โ€” don't output anything at all; the status code shows success. literally zero words, all information, the way that she communicates ๐Ÿ’œ
  • --strict โ€” exit non-zero for improperly formatted checksum lines. she's strict, she said what she said โญ
  • -w, --warn โ€” warn about improperly formatted checksum lines. not a threat, a promise ๐ŸŒˆ
  • --debug โ€” indicate which implementation used. she's telling you exactly which one of her showed up ๐Ÿ‘‘
  • --help โ€” display this help and exit. classic, beloved, we stan ๐ŸŽ€
  • --version โ€” output version information and exit. also classic. also beloved. ๐Ÿ’–

๐ŸŒธ DIGEST determines the digest algorithm and default output format ๐ŸŒธ

here's the whole roster bestie, every single one, no skips:

  • sysv โ€” (equivalent to sum -s)
  • bsd โ€” (equivalent to sum -r)
  • crc โ€” (equivalent to cksum)
  • crc32b โ€” (only available through cksum)
  • md5 โ€” (equivalent to md5sum)
  • sha1 โ€” (equivalent to sha1sum)
  • sha2 โ€” (equivalent to sha{224,256,384,512}sum)
  • sha3 โ€” (only available through cksum)
  • blake2b โ€” (equivalent to b2sum)
  • sm3 โ€” (only available through cksum)

and when checking? the input should be a former output of this program, or an equivalent standalone program. she's not out here verifying just anything, she needs receipts ๐Ÿงพ


โœจ AUTHOR โœจ

written by Padraig Brady and Q. Frank Xia. legends, honestly. we owe them everything ๐Ÿซถ


โœจ REPORTING BUGS โœจ

found a bug? don't just suffer in silence, bestie, tell someone:


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. and listen โ€” there is NO WARRANTY, to the extent permitted by law. like, none. zero. she said it clearly ๐Ÿ˜ญ


โœจ SEE ALSO โœจ


and that's the page babe ๐Ÿ’… this was GNU coreutils 9.12, dated September 2026 โ€” cksum manual page, section 1, out. go verify something, you absolute icon ๐Ÿ‘‘โœจ

๐Ÿ“ฆ where this page comes from