1sum(1B)            SunOS/BSD Compatibility Package Commands            sum(1B)
2
3
4

NAME

6       sum - calculate a checksum for a file
7

SYNOPSIS

9       /usr/ucb/sum file...
10
11

DESCRIPTION

13       sum  calculates  and  displays a 16-bit checksum for the named file and
14       displays the size of the file in kilobytes. It  is  typically  used  to
15       look for bad spots, or to validate a file communicated over some trans‐
16       mission line. The checksum is calculated  by  an  algorithm  which  may
17       yield  different results on machines with 16-bit ints and machines with
18       32-bit ints, so it cannot always be used to validate that  a  file  has
19       been transferred between machines with different-sized ints.
20

USAGE

22       See  largefile(5)  for  the  description  of  the  behavior of sum when
23       encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
24

ATTRIBUTES

26       See attributes(5) for descriptions of the following attributes:
27
28
29
30
31       ┌─────────────────────────────┬─────────────────────────────┐
32       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
33       ├─────────────────────────────┼─────────────────────────────┤
34       │Availability                 │SUNWscpu                     │
35       └─────────────────────────────┴─────────────────────────────┘
36

SEE ALSO

38       sum(1), wc(1), attributes(5), largefile(5)
39

DIAGNOSTICS

41       Read error is indistinguishable from EOF on  most  devices;  check  the
42       block count.
43

NOTES

45       sum and /usr/bin/sum (see sum(1)) return different checksums.
46
47
48       This utility is obsolete.
49
50
51
52SunOS 5.11                        8 Nov 1995                           sum(1B)
Impressum