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
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms