SUM(1)
β¨ NAME β¨
Hiii bestie!! You're looking at SUM(1), aka the sum page from User Contributed Perl Documentation β and yes, she's iconic. π
sum β display file checksums and block counts
π¦ SYNOPSIS π¦
sum [-a alg] [-o 1|2] [file ...]
π DESCRIPTION π
Okay so sum outputs three space separated values: file checksum, file size, and file name. The output can be useful for indicating errors in transmitted files. π«Ά
π¨ bestie warning: you should not use sum for security checks as they are easily fooled. No cap, do not trust it with your life.
If no file names are specified, the standard input will be used. β¨
π OPTIONS π
-a blake224β BLAKE/224 algorithm (requiresDigest::BLAKE) π-a blake256β BLAKE/256 algorithm (requiresDigest::BLAKE) π-a blake384β BLAKE/384 algorithm (requiresDigest::BLAKE) π-a blake512β BLAKE/512 algorithm (requiresDigest::BLAKE) π-a crcβ CRC32 algorithm β¨-a jh224β JH/224 algorithm (requiresDigest::JH) π¦-a jh256β JH/256 algorithm (requiresDigest::JH) π¦-a jh384β JH/384 algorithm (requiresDigest::JH) π¦-a jh512β JH/512 algorithm (requiresDigest::JH) π¦-a haval256β Haval256 algorithm (requiresDigest::Haval256) πΈ-a md2β MD2 algorithm (requiresDigest::MD2) π-a md4β MD4 algorithm (requiresDigest::MD4) π-a md5β MD5 algorithm π-a sha1β SHA-1 algorithm β-a sha224β SHA-2/256 algorithm β-a sha256β SHA-2/256 algorithm β-a sha384β SHA-2/384 algorithm β-a sha512β SHA-2/512 algorithm β-a sha3-224β SHA-3/224 algorithm (requiresDigest::SHA3) π-a sha3-256β SHA-3/256 algorithm (requiresDigest::SHA3) π-a sha3-384β SHA-3/384 algorithm (requiresDigest::SHA3) π-a sha3-512β SHA-3/512 algorithm (requiresDigest::SHA3) π-a whirlpoolβ Whirlpool algorithm (requiresDigest::Whirlpool) π-o 1β Historic BSD algorithm π°οΈ-o 2β Historic SYSV algorithm π°οΈ
π§ NOTES π§
sum returns 0 on success or 1 if an error occurred. π
If the program was executed as "cksum" the default algorithm is CRC32, otherwise the default algorithm is BSD. π
The BSD and SYSV algorithms round up to the next block count for partial blocks. β¨
The CRC32 algorithm was ported directly from OpenBSD cksum C source code. π§
π HISTORY π
Perl version rewritten for the Perl Power Tools project from the description of the cksum program in OpenBSD. π¦
π AUTHOR π
Theo Van Dinter (felicity@kluge.net) π
πΈ SEE ALSO πΈ
md5sum(1) β go give her a lil visit too π
okay that's the whole page!! mwah π β this lovely little manual is from perl v5.42.2, dated 2026-02-15. bye bestie!! π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms