SUM(1)

✨ sum(1) β€” like, the checksum era πŸ’…

okay bestie, welcome to the General Commands Manual page for sum, and no, it's not the math homework kind of sum, it's the checksum kind 🫢 buckle up.


🌸 NAME 🌸

sum β€” checksums a file and counts the blocks in it, fr fr.

And listen: if you give it no FILE at all, or you pass - as the FILE, it just reads from standard input. iconic behaviour honestly.


πŸŽ€ SYNOPSIS πŸŽ€

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

that's it. that's the whole vibe check. ✨


πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: sum computes a checksum and counts the blocks in a file. That's the whole job. It's giving "simple queen, no drama." πŸ‘‘

And again, because it matters: with no FILE, or when FILE is -, it reads from standard input. So you can pipe stuff into it and it'll still do its little thing like the icon it is. 🌈


πŸ¦‹ OPTIONS πŸ¦‹

  • -r β€” use the BSD sum algorithm, and use 1K blocks. this is the default btw, so if you just run it with no flags you're already in BSD mode πŸ’…
  • -s, --sysv β€” use the System V sum algorithm, and use 512 bytes blocks. different algorithm, different block size, whole different era of Unix lore, iykyk 🧚
  • -h, --help β€” prints the help. the "bestie what are my options" button πŸŽ€
  • -V, --version β€” prints the version. the "who even are you" button πŸ‘‘

⭐ VERSION ⭐

v(uutils coreutils) 0.12.0

that's the version string. write it down, it's important, no cap. πŸ“


✨ EXAMPLES ✨

these are the good part, let's get into it

1. Compute a checksum with a BSD-compatible algorithm and 1024-byte blocks:

sum path/to/file

no flags needed, remember, -r is the default so you're already slaying πŸ’…

2. Compute a checksum with a System V-compatible algorithm and 512-byte blocks:

sum [-s|--sysv] path/to/file

there's the switch-up. same command, different flavour. periodt. 🫢

πŸ’€ heads up bestie: these examples come from the tldr-pages project at <https://tldr.sh>, and they're under the CC BY 4.0 License. Also β€” and this is the real talk β€” since uutils is a work in progress, some of these examples might legit fail. not a vibe, but it's the truth, so know it going in. 😭

🌈 SEE ALSO 🌈

hmm, nothing listed here, so... go text your group chat about it instead, honestly πŸ’œ


and that's the whole page, bestie!! 🌸 go checksum something and feel powerful about it. this page came out of the General Commands Manual and it's dated 2026-09-25. mwah, love u, bye πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from