maux
Star on GitHub Buy me a coffee

Manual / sum

sum(1)

SUM(1) General Commands Manual SUM(1)

sum - checksum files

sum [file...]

Sum sums the contents of a file. On maux the sum is a 16-bit rotating checksum: rotate right one bit, add the next byte, and retain the low 16 bits. For each file it prints the checksum, the number of 512-byte blocks rounded upward, and the file name. With no operands it reads standard input and omits the name. An input which cannot be opened is reported and skipped.

/usr/man/SUM this page

cksum(1), cmp(1), licenses(1)

Exit status is 0 on success, 1 if any input cannot be opened.

This checksum detects accidental changes; it is not a cryptographic digest. It is not the CRC used by cksum.

September 19, 2026 maux