Name

cksum

Synopsis

cksum [files]

Calculates and prints a cyclic redundancy check (CRC) for each file. The CRC algorithm is based on the polynomial used for Ethernet packets. For each file, cksum prints a line of the form:

 sum count filename

Here, sum is the CRC, count is the number of bytes in the file, and filename is the file’s name. The name is omitted if standard input is used.

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.