August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/cksum [file...] The cksum command calculates and writes to standard output a cyclic redundancy check (CRC) for each input file and also writes to standard output the number of octets in each file.
For each file processed successfully, cksum writes in the following format:
"%u %d %s\n" checksum, # of octets, pathname
If you do not specify a file operand, the path name and its leading space are omitted.
The CRC is based on the polynomial used for CRC error checking in the referenced Ethernet standard.
The encoding for the CRC checksum is defined by the generating polynomial:
G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4
+ x2 + x + 1 Mathematically, ...
Read now
Unlock full access