SUM(1B)
π SUM(1B) π
okay so this is the BSD System Compatibility manual, and todayβs main character is sum. she sums, she counts blocks, she serves. iconic behavior only. β¨
π NAME π
sum β (BSD) sum and count blocks in a file. literally the whole gig, no cap.
β¨ SYNOPSIS β¨
/ucb/sum [file]
πΈ DESCRIPTION πΈ
bestie, sum does two things for the named file: it calculates and prints a 16-bit checksum for it, and it also prints the number of kilobytes in the file. thatβs the vibe. π«Ά
itβs typically used to look for bad spots, or to validate a file communicated over some transmission line. so if a file traveled through a transmission line and you need a vibe check? this is the girl for the job. π
π¦ SEE ALSO π¦
π₯ DIAGNOSTICS π₯
okay so the tea: the Read error situation is indistinguishable from end of file on most devices. so like, check the block count, bestie. donβt let the ambiguity gaslight you. π
π NOTES π
- the checksum is identical to that obtained with the
-roption of/5bin/sum. fr fr. - the algorithm may produce different results in different implementations. for this reason,
cksum(1)should be used in preference. periodt, usecksum(1).
mwah π this was the SUM(1B) page from the Heirloom Toolchest, dated 10/11/03 β bye bestie! ππ
π¦ where this page comes from
- nixos 26.05: heirloom 070715
- nixpkgs unstable: heirloom 070715
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms