DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

cksum(C)


cksum -- write file checksums and sizes

Syntax

cksum [ file ... ]

Description

cksum calculates and prints a cyclic redundant check (CRC) for each input file, and also prints the number of bytes in each file.

If no file is named, standard input is used.

cksum is usually used to quickly compare a suspect copy of a file against a trusted version of the same file.

Exit values

cksum returns the following values:

0
all files were processed successfully

>0
an error occurred

Notes

The CRC used is based on the polynomial used for CRC error checking in the networking standard ISO 8802-3 {B7}.

See also

sum(C)

Standards conformance

cksum is conformant with:

ISO/IEC DIS 9945-2:1992, Information technology - Portable Operating System Interface (POSIX) - Part 2: Shell and Utilities (IEEE Std 1003.2-1992);
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003