SUM(1)

πŸ“¦ version 1.053, in alpine 3.24

✨ 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 (requires Digest::BLAKE) πŸ’–
  • -a blake256 β€” BLAKE/256 algorithm (requires Digest::BLAKE) πŸ’–
  • -a blake384 β€” BLAKE/384 algorithm (requires Digest::BLAKE) πŸ’–
  • -a blake512 β€” BLAKE/512 algorithm (requires Digest::BLAKE) πŸ’–
  • -a crc β€” CRC32 algorithm ✨
  • -a jh224 β€” JH/224 algorithm (requires Digest::JH) πŸ¦‹
  • -a jh256 β€” JH/256 algorithm (requires Digest::JH) πŸ¦‹
  • -a jh384 β€” JH/384 algorithm (requires Digest::JH) πŸ¦‹
  • -a jh512 β€” JH/512 algorithm (requires Digest::JH) πŸ¦‹
  • -a haval256 β€” Haval256 algorithm (requires Digest::Haval256) 🌸
  • -a md2 β€” MD2 algorithm (requires Digest::MD2) πŸŽ€
  • -a md4 β€” MD4 algorithm (requires Digest::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 (requires Digest::SHA3) 🌈
  • -a sha3-256 β€” SHA-3/256 algorithm (requires Digest::SHA3) 🌈
  • -a sha3-384 β€” SHA-3/384 algorithm (requires Digest::SHA3) 🌈
  • -a sha3-512 β€” SHA-3/512 algorithm (requires Digest::SHA3) 🌈
  • -a whirlpool β€” Whirlpool algorithm (requires Digest::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