- Cksum
cksum is a
POSIX command that reads the files specified by the File parameter and calculates achecksum ,cyclic redundancy check (CRC) and thebyte count for a file or files. If no files are specified, the cksum command reads standard input. The checksum, number of bytes, and file name are written to standard output.The cksum command can be used to compare a suspect file copied or communicated over noisy transmission lines against an exact copy of a trusted file. The comparison made by the cksum command may not be cryptographically secure. However, it is unlikely that an accidentally damaged file will produce the same checksum as the original file.
The standard cksum command, as found on most UNIX and UNIX-like OS (including GNU/Linux, *BSD, Mac OS X, Solaris) uses a CRC algorithm based on the
ethernet standard frame check and is therefore interoperable between implementations. The cksum command onTru64 returns a different CRC value, unless theenvironment variable CMD_ENV is set to "xpg4".Syntax
cksum [ File ... ]
See also
*
GNU Core Utilities
*md5sum
*sha1sum
Wikimedia Foundation. 2010.