cksum
From Wikipedia, the free encyclopedia
cksum is a POSIX command that reads the files specified by the File parameter and calculates a checksum, cyclic redundancy check (CRC) and the byte 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 on Tru64 returns a different CRC value, unless the environment variable CMD_ENV is set to "xpg4".
[edit] Syntax
cksum [ File ... ]
[edit] See also
| This article does not cite any references or sources. (January 2008) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
|
||||||||||||||||||||||||||

