sum - display file checksums and block counts
sum [-a alg] [-o 1|2] [file ...]
sum outputs three space separated values: file checksum, file size, and file name. The output can be useful for indicating errors in transmitted files. You should not use sum for security checks as they are easily fooled. If no file names are specified, the standard input will be used.
CRC32 algorithm
MD5 algorithm
SHA-1 algorithm
SHA-2/256 algorithm
SHA-2/384 algorithm
SHA-2/512 algorithm
Historic BSD algorithm
Historic SYSV algorithm
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.
Perl version rewritten for the Perl Power Tools project from the description of the cksum program in OpenBSD.
Theo Van Dinter (felicity@kluge.net)
md5sum(1)
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlPowerTools
CPAN shell
perl -MCPAN -e shell install PerlPowerTools
For more information on module installation, please visit the detailed CPAN module installation guide.