SUM(1)

๐Ÿ’– SUM(1) โ€” the checksum bestie ๐Ÿ’–

ok so like. it's sum, it lives in the User Commands section of the manual, and it's here to checksum and count the blocks in a file. slay.


โœจ NAME โœจ

sum โ€” checksum and count the blocks in a file


๐ŸŒธ SYNOPSIS ๐ŸŒธ

sum [OPTION]... [FILE]...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

ok bestie so here's the vibe: sum prints or checks BSD (16-bit) checksums. it's the legacy interface to the cksum(1) utility, like it's the older sibling who paved the way and now just chills ๐Ÿ’…

and if you give it no FILE, or if FILE is -? it reads from standard input. classic. very main character of it.

here are the options, and yes there are only four, we're keeping it minimal:

  • -r โ€” use the BSD sum algorithm (this is the default, btw, so it's giving "I'm already on"), and it uses 1K blocks
  • -s, --sysv โ€” use the System V sum algorithm instead, and it uses 512 bytes blocks
  • --help โ€” display this help and exit ๐Ÿซถ
  • --version โ€” output version information and exit โญ
no cap: -r is the default, so if you don't say anything, you're getting BSD and 1K blocks. periodt.

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by Kayvan Aghaiepour and David MacKenzie. icons, honestly.


๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? not the vibe, but okay, tell the people:


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 ๐ŸŒˆ


ok that's the whole page, you ate it ๐Ÿ’… this was GNU coreutils 9.12, dated September 2026 โ€” and that's SUM(1), signing off, ily, go checksum something ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from