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.

Notices

A version of cksum that can handle files greater than 2GB is available in /u95/bin. See cksum(1) for more information.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005