blob: 256472c26de764a148ffa9ed6bebeceb65271fc8 [file] [log] [blame]
Yuri Pankov66492cf2018-02-13 20:11:23 +03001.\"
2.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3.\" permission to reproduce portions of its copyrighted documentation.
4.\" Original documentation from The Open Group can be obtained online at
5.\" http://www.opengroup.org/bookstore/.
6.\"
7.\" The Institute of Electrical and Electronics Engineers and The Open
8.\" Group, have given us permission to reprint portions of their
9.\" documentation.
10.\"
11.\" In the following statement, the phrase ``this text'' refers to portions
12.\" of the system documentation.
13.\"
14.\" Portions of this text are reprinted and reproduced in electronic form
15.\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16.\" Standard for Information Technology -- Portable Operating System
17.\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18.\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19.\" Engineers, Inc and The Open Group. In the event of any discrepancy
20.\" between these versions and the original IEEE and The Open Group
21.\" Standard, the original IEEE and The Open Group Standard is the referee
22.\" document. The original Standard can be obtained online at
23.\" http://www.opengroup.org/unix/online.html.
24.\"
25.\" This notice shall appear on any product containing this material.
26.\"
27.\" The contents of this file are subject to the terms of the
28.\" Common Development and Distribution License (the "License").
29.\" You may not use this file except in compliance with the License.
30.\"
31.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32.\" or http://www.opensolaris.org/os/licensing.
33.\" See the License for the specific language governing permissions
34.\" and limitations under the License.
35.\"
36.\" When distributing Covered Code, include this CDDL HEADER in each
37.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38.\" If applicable, add the following below this CDDL HEADER, with the
39.\" fields enclosed by brackets "[]" replaced with your own identifying
40.\" information: Portions Copyright [yyyy] [name of copyright owner]
41.\"
42.\"
Richard Lowec10c16d2011-03-14 14:05:30 -040043.\" Copyright 1989 AT&T
Yuri Pankov66492cf2018-02-13 20:11:23 +030044.\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved
Richard Lowec10c16d2011-03-14 14:05:30 -040045.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
Yuri Pankov66492cf2018-02-13 20:11:23 +030046.\"
Peter Tribble9dd2e6b2021-06-08 18:29:08 +010047.TH SUM 1 "May 23, 2021"
Richard Lowec10c16d2011-03-14 14:05:30 -040048.SH NAME
49sum \- print checksum and block count for a file
50.SH SYNOPSIS
Richard Lowec10c16d2011-03-14 14:05:30 -040051.nf
52\fB/usr/bin/sum\fR [-abBchHlLpPrRstTw] [-x method] [\fIfile\fR...]
53.fi
54
55.SS "ksh93"
Richard Lowec10c16d2011-03-14 14:05:30 -040056.nf
57sum [-abBchHlLpPrRstTw] [-x method] [\fIfile\fR...]
58.fi
59
60.SH DESCRIPTION
Richard Lowec10c16d2011-03-14 14:05:30 -040061The \fBsum\fR utility and ksh93 built-in command list the checksum, and for
62most methods the block count, for each file argument. The standard input is
63read if there are no file arguments.
64.sp
65.LP
66The \fBgetconf\fR(1) \fBUNIVERSE\fR determines the default sum method: att for
67the att universe, bsd otherwise. The default for the other commands is the
68command name itself. The att method is a true sum, all others are order
69dependent.
70.sp
71.LP
72Method names consist of a leading identifier and 0 or more options separated by
73-.
74.sp
75.LP
76\fBgetconf\fR \fBPATH_RESOLVE\fR determines how symbolic links are handled.
77This can be explicitly overridden by the \fB--logical\fR, \fB--metaphysical\fR,
78and \fB--physical\fR options below. \fBPATH_RESOLVE\fR can be one of:
79.sp
80.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -040081.na
82\fB\fB--logical\fR\fR
83.ad
84.RS 18n
Richard Lowec10c16d2011-03-14 14:05:30 -040085Follow all symbolic links.
86.RE
87
88.sp
89.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -040090.na
91\fB\fB--metaphysical\fR\fR
92.ad
93.RS 18n
Richard Lowec10c16d2011-03-14 14:05:30 -040094Follow command argument symbolic links, otherwise do not follow.
95.RE
96
97.sp
98.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -040099.na
100\fB\fB--physical\fR\fR
101.ad
102.RS 18n
Richard Lowec10c16d2011-03-14 14:05:30 -0400103Do not follow symbolic links.
104.RE
105
106.SH OPTIONS
Richard Lowec10c16d2011-03-14 14:05:30 -0400107The following options are supported for \fB/usr/bin/sum\fR:
108.sp
109.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400110.na
111\fB\fB-a\fR\fR
112.ad
113.br
114.na
115\fB\fB--all\fR\fR
116.ad
117.sp .6
118.RS 4n
119List the checksum for all files. Use with \fB--total\fR to list both individual
120and total checksums and block counts.
121.RE
122
123.sp
124.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400125.na
126\fB\fB-b\fR\fR
127.ad
128.br
129.na
130\fB\fB--binary\fR\fR
131.ad
132.sp .6
133.RS 4n
134Read files in binary mode. This is the default.
135.RE
136
137.sp
138.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400139.na
140\fB\fB-B\fR\fR
141.ad
142.br
143.na
144\fB\fB--scale=scale\fR\fR
145.ad
146.sp .6
147.RS 4n
148Block count scale (bytes per block) override for methods that include size in
149the output. The default is method-specific.
150.RE
151
152.sp
153.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400154.na
155\fB\fB-c\fR\fR
156.ad
157.br
158.na
159\fB\fB--check\fR\fR
160.ad
161.sp .6
162.RS 4n
163Each file is interpreted as the output from a previous sum. If \fB--header\fR
164or \fB--permissions\fR was specified in the previous sum then the checksum
165method is automatically determined, otherwise \fB--method\fR must be specified.
166The listed checksum is compared with the current value and a warning is issued
167for each file that does not match. If file was generated by
168\fB--permissions\fR, then the file mode, user and group are also checked. Empty
169lines, lines starting with #<space>, or the line # are ignored. Lines
170containing no blanks are interpreted as [no]name[=\fIvalue\fR] options:
171.sp
172.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400173.na
174\fB\fBmethod=name\fR\fR
175.ad
176.sp .6
177.RS 4n
178Checksum method to apply to subsequent lines.
179.RE
180
181.sp
182.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400183.na
184\fB\fBpermissions\fR\fR
185.ad
186.sp .6
187.RS 4n
188Subsequent lines were generated with \fB--permissions\fR.
189.RE
190
191.RE
192
193.sp
194.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400195.na
196\fB\fB-h\fR\fR
197.ad
198.br
199.na
200\fB\fB--header\fR\fR
201.ad
202.sp .6
203.RS 4n
204Print the checksum method as the first output line. Used with \fB--check\fR and
205\fB--permissions\fR.
206.RE
207
208.sp
209.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400210.na
211\fB\fB-l\fR\fR
212.ad
213.br
214.na
215\fB\fB--list\fR\fR
216.ad
217.sp .6
218.RS 4n
219Each file is interpreted as a list of files, one per line, that is checksummed.
220.RE
221
222.sp
223.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400224.na
225\fB\fB-p\fR\fR
226.ad
227.br
228.na
229\fB\fB--permissions\fR\fR
230.ad
231.sp .6
232.RS 4n
233If \fB--check\fR is not specified then list the file mode, user and group
234between the checksum and path. User and group matching the caller are output as
235-. If \fB--check\fR is specified then the mode, user and group for each path in
236file are updated if necessary to match those in file. A warning is printed on
237the standard error for each changed file.
238.RE
239
240.sp
241.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400242.na
243\fB\fB-R\fR\fR
244.ad
245.br
246.na
247\fB\fB--recursive\fR\fR
248.ad
249.sp .6
250.RS 4n
251Recursively checksum the contents of directories.
252.RE
253
254.sp
255.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400256.na
257\fB\fB-t\fR\fR
258.ad
259.br
260.na
261\fB\fB--total\fR\fR
262.ad
263.sp .6
264.RS 4n
265List only the total checksum and block count of all files. \fB--all\fR
266\fB--total\fR lists each checksum and the total. The total checksum and block
267count may be different from the checksum and block count of the catenation of
268all files due to partial blocks that may occur when the files are treated
269separately.
270.RE
271
272.sp
273.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400274.na
275\fB\fB-T\fR\fR
276.ad
277.br
278.na
279\fB\fB--text\fR\fR
280.ad
281.sp .6
282.RS 4n
Bart Coddens98cdf452013-09-10 20:33:47 +0200283Read files in text mode (for example, treat \er\en as \en).
Richard Lowec10c16d2011-03-14 14:05:30 -0400284.RE
285
286.sp
287.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400288.na
289\fB\fB-w\fR\fR
290.ad
291.br
292.na
293\fB\fB--warn\fR\fR
294.ad
295.sp .6
296.RS 4n
297Warn about invalid \fB--check\fR lines. On by default; \fB-w\fR means
298\fB--nowarn\fR.
299.RE
300
301.sp
302.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400303.na
304\fB\fB-x\fR\fR
305.ad
306.br
307.na
308\fB\fB--method|algorithm=method\fR\fR
309.ad
310.sp .6
311.RS 4n
312Specifies the checksum method to apply. Parenthesized method options are
313readonly implementation details.
314.sp
315.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400316.na
317\fB\fBatt\fR|\fBsys5\fR|\fBs5\fR|\fBdefault\fR\fR
318.ad
319.sp .6
320.RS 4n
321The system 5 release 4 checksum. This is the default for sum when \fBgetconf\fR
322\fBUNIVERSE\fR is \fBatt\fR. This is the only true sum; all of the other
323methods are order dependent.
324.RE
325
326.sp
327.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400328.na
329\fB\fBast4\fR|\fB32x4\fR|\fBtw\fR\fR
330.ad
331.sp .6
332.RS 4n
333The \fBast\fR 128 bit \fBPRNG\fR hash generated by catenating 4 separate 32 bit
334\fBPNRG\fR hashes. The block count is not printed.
335.RE
336
337.sp
338.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400339.na
340\fB\fBbsd\fR|\fBucb\fR\fR
341.ad
342.sp .6
343.RS 4n
344The BSD checksum.
345.RE
346
347.sp
348.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400349.na
350\fB\fBcrc\fR\fR
351.ad
352.sp .6
353.RS 4n
35432 bit CRC (cyclic redundancy check).
355.sp
356.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400357.na
358\fB\fBpolynomial\fR=\fImask\fR\fR
359.ad
360.sp .6
361.RS 4n
362The 32 bit \fBcrc\fR polynomial bitmask with implicit bit 32. The default value
363is 0xedb88320.
364.RE
365
366.sp
367.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400368.na
369\fB\fBdone\fR[=\fInumber\fR]\fR
370.ad
371.sp .6
372.RS 4n
373XOR the final \fBcrc\fR value with number. 0xffffffff is used if number is
374omitted. The option value may be omitted. The default value is 0.
375.RE
376
377.sp
378.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400379.na
380\fB\fBinit\fR[=\fInumber\fR]\fR
381.ad
382.sp .6
383.RS 4n
384The initial \fBcrc\fR value. 0xffffffff is used if number is omitted. The
385option value may be omitted. The default value is 0.
386.RE
387
388.sp
389.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400390.na
391\fB\fBrotate\fR\fR
392.ad
393.sp .6
394.RS 4n
395XOR each input character with the high order \fBcrc\fR byte (instead of the low
396order).
397.RE
398
399.sp
400.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400401.na
402\fB\fBsize\fR[=\fInumber\fR]\fR
403.ad
404.sp .6
405.RS 4n
406Include the total number of bytes in the crc. number, if specified, is first
407XOR'd into the size. The option value may be omitted. The default value is 0.
408.RE
409
410.RE
411
412.sp
413.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400414.na
415\fB\fBprng\fR\fR
416.ad
417.sp .6
418.RS 4n
41932 bit \fBPRNG\fR (pseudo random number generator) hash.
420.sp
421.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400422.na
423\fB\fBmpy\fR=\fInumber\fR\fR
424.ad
425.RS 17n
Richard Lowec10c16d2011-03-14 14:05:30 -0400426The 32 bit \fBPRNG\fR multiplier. The default value is 0x01000193.
427.RE
428
429.sp
430.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400431.na
432\fB\fBadd\fR=\fInumber\fR\fR
433.ad
434.RS 17n
Richard Lowec10c16d2011-03-14 14:05:30 -0400435The 32 bit \fBPRNG\fR addend. The default value is 0.
436.RE
437
438.sp
439.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400440.na
441\fB\fBinit\fR[=\fInumber\fR]\fR
442.ad
443.RS 17n
Richard Lowec10c16d2011-03-14 14:05:30 -0400444The \fBPRNG\fR initial value. 0xffffffff is used if number is omitted. The
445option value may be omitted. The default value is 0x811c9dc5.
446.RE
447
448.RE
449
450.sp
451.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400452.na
453\fB\fBmd4\fR|\fBMD4\fR\fR
454.ad
455.sp .6
456.RS 4n
457\fBRFC1320\fR \fBMD4\fR message digest. Cryptographically weak. The block count
458is not printed. (version) \fBmd4\fR (\fBsolaris\fR \fB-lmd\fR) 2005-07-26
459.RE
460
461.sp
462.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400463.na
464\fB\fBmd5\fR|\fBMD5\fR\fR
465.ad
466.sp .6
467.RS 4n
468\fBRFC1321\fR \fBMD5\fR message digest. Cryptographically weak. The block count
469is not printed. (version) \fBmd5\fR (\fBsolaris\fR \fB-lmd\fR) 2005-07-26
470.RE
471
472.sp
473.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400474.na
475\fB\fBsha1\fR|\fBSHA1\fR|\fBsha-1\fR|\fBSHA-1\fR\fR
476.ad
477.sp .6
478.RS 4n
479\fBRFC3174\fR / \fBFIPS 180-1\fR \fBSHA-1\fR secure hash algorithm 1.
480Cryptographically weak. The block count is not printed. (version) \fBsha1\fR
481(\fBsolaris\fR \fB-lmd\fR) 2005-07-26
482.RE
483
484.sp
485.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400486.na
487\fB\fBsha256\fR|\fBsha-256\fR|\fBSHA256\fR|\fBSHA-256\fR\fR
488.ad
489.sp .6
490.RS 4n
491\fBFIPS 180-2\fR \fBSHA256\fR secure hash algorithm. The block count is not
492printed. (version) \fBsha256\fR (\fBsolaris\fR \fB-lmd\fR) 2005-07-26
493.RE
494
495.sp
496.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400497.na
498\fB\fBsha384\fR|\fBsha-384\fR|\fBSHA384\fR|\fBSHA-384\fR\fR
499.ad
500.sp .6
501.RS 4n
502\fBFIPS 180-2\fR \fBSHA384\fR secure hash algorithm. The block count is not
503printed. (version) \fBsha384\fR (\fBsolaris\fR \fB-lmd\fR) 2005-07-26
504.RE
505
506.sp
507.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400508.na
509\fB\fBsha512\fR|\fBsha-512\fR|\fBSHA512\fR|\fBSHA-512\fR\fR
510.ad
511.sp .6
512.RS 4n
513\fBFIPS 180-2\fR \fBSHA512\fR secure hash algorithm. The block count is not
514printed. (version) \fBsha512\fR (\fBsolaris\fR \fB-lmd\fR) 2005-07-26
515.RE
516
517.sp
518.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400519.na
520\fB\fBposix\fR|\fBcksum\fR|\fBstd\fR|\fBstandard\fR\fR
521.ad
522.sp .6
523.RS 4n
524The \fBposix 1003.2-1992\fR 32 bit \fBcrc\fR checksum. This is the default
525\fBcksum\fR(1) method. Shorthand for \fBcrc-0x04c11db7-rotate-done-size\fR.
526.RE
527
528.sp
529.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400530.na
531\fB\fBzip\fR\fR
532.ad
533.sp .6
534.RS 4n
535The \fBzip\fR(1) \fBcrc\fR. Shorthand for \fBcrc-0xedb88320-init-done\fR.
536.RE
537
538.sp
539.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400540.na
541\fB\fBfddi\fR\fR
542.ad
543.sp .6
544.RS 4n
545The \fBFDDI\fR \fBcrc\fR. Shorthand for
546\fBcrc-0xedb88320-size\fR=\fB0xcc55cc55\fR.
547.RE
548
549.sp
550.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400551.na
552\fB\fBfnv\fR|\fBfnv1\fR\fR
553.ad
554.sp .6
555.RS 4n
556The \fBFowler-Noll-Vo\fR 32 bit \fBPRNG\fR hash with non-zero initializer
557(\fBFNV-1\fR). Shorthand for \fBprng-0x01000193-init\fR=\fB0x811c9dc5\fR.
558.RE
559
560.sp
561.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400562.na
563\fB\fBast\fR|\fBstrsum\fR\fR
564.ad
565.sp .6
566.RS 4n
567The \fBast\fR \fBstrsum\fR \fBPRNG\fR hash. Shorthand for
568\fBprng-0x63c63cd9-add\fR=\fB0x9c39c33d\fR.
569.RE
570
571.RE
572
573.sp
574.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400575.na
576\fB\fB-L\fR\fR
577.ad
578.br
579.na
580\fB\fB--logical\fR|\fBfollow\fR\fR
581.ad
582.sp .6
583.RS 4n
584Follow symbolic links when traversing directories. The default is determined by
585\fBgetconf\fR \fBPATH_RESOLVE\fR.
586.RE
587
588.sp
589.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400590.na
591\fB\fB-H\fR\fR
592.ad
593.br
594.na
595\fB\fB--metaphysical\fR\fR
596.ad
597.sp .6
598.RS 4n
599Follow command argument symbolic links, otherwise do not follow symbolic links
600when traversing directories. The default is determined by \fBgetconf\fR
601\fBPATH_RESOLVE\fR.
602.RE
603
604.sp
605.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400606.na
607\fB\fB-P\fR\fR
608.ad
609.br
610.na
611\fB\fB--physical\fR\fR
612.ad
613.sp .6
614.RS 4n
615Do not follow symbolic links when traversing directories. The default is
616determined by \fBgetconf\fR \fBPATH_RESOLVE\fR.
617.RE
618
619.sp
620.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400621.na
622\fB\fB-r\fR\fR
623.ad
624.br
625.na
626\fB\fB--bsd\fR\fR
627.ad
628.sp .6
629.RS 4n
630Equivalent to \fB--method=bsd\fR \fB--scale=512\fR for compatibility with other
631sum implementations.
632.RE
633
634.sp
635.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400636.na
637\fB\fB-s\fR\fR
638.ad
639.br
640.na
641\fB\fB--sysv\fR\fR
642.ad
643.sp .6
644.RS 4n
645Equivalent to \fB--method=sys5\fR for compatibility with other sum
646implementations.
647.RE
648
649.sp
650.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400651.na
652\fB\fB-S\fR\fR
653.ad
654.br
655.na
656\fB\fB--silent\fR|\fBstatus\fR\fR
657.ad
658.sp .6
659.RS 4n
660No output for \fB--check\fR; 0 exit status means all sums matched, non-0 means
661at least one sum failed to match. Ignored for \fB--permissions\fR.
662.RE
663
664.SH OPERANDS
Richard Lowec10c16d2011-03-14 14:05:30 -0400665The following operands are supported:
666.sp
667.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400668.na
669\fB\fIfile\fR\fR
670.ad
671.RS 8n
Richard Lowec10c16d2011-03-14 14:05:30 -0400672A path name of a file. If no files are named, the standard input is used.
673.RE
674
675.SH USAGE
Richard Lowec10c16d2011-03-14 14:05:30 -0400676See \fBlargefile\fR(5) for the description of the behavior of \fBsum\fR when
677encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
678.SH ENVIRONMENT VARIABLES
Richard Lowec10c16d2011-03-14 14:05:30 -0400679See \fBenviron\fR(5) for descriptions of the following environment variables
680that affect the execution of \fBsum\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and
681\fBNLSPATH\fR.
682.SH EXIT STATUS
Richard Lowec10c16d2011-03-14 14:05:30 -0400683The following exit values are returned.
684.sp
685.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400686.na
687\fB\fB0\fR\fR
688.ad
689.RS 6n
Richard Lowec10c16d2011-03-14 14:05:30 -0400690Successful completion.
691.RE
692
693.sp
694.ne 2
Richard Lowec10c16d2011-03-14 14:05:30 -0400695.na
696\fB\fB>0\fR\fR
697.ad
698.RS 6n
Richard Lowec10c16d2011-03-14 14:05:30 -0400699An error occurred.
700.RE
701
702.SH ATTRIBUTES
Richard Lowec10c16d2011-03-14 14:05:30 -0400703See \fBattributes\fR(5) for descriptions of the following attributes:
704.sp
705
706.sp
707.TS
Yuri Pankoved22c712011-10-03 04:36:40 -0700708box;
709c | c
710l | l .
711ATTRIBUTE TYPE ATTRIBUTE VALUE
Richard Lowec10c16d2011-03-14 14:05:30 -0400712_
Yuri Pankoved22c712011-10-03 04:36:40 -0700713CSI Enabled
Richard Lowec10c16d2011-03-14 14:05:30 -0400714.TE
715
716.SH SEE ALSO
Peter Tribble9dd2e6b2021-06-08 18:29:08 +0100717\fBcksum\fR(1), \fBdigest\fR(1), \fBgetconf\fR(1), \fBksh93\fR(1),
718\fBsum\fR(1B), \fBwc\fR(1),
719\fBzip\fR(1), \fBlibmd\fR(3LIB), \fBattributes\fR(5), \fBenviron\fR(5),
Richard Lowec10c16d2011-03-14 14:05:30 -0400720\fBlargefile\fR(5)
721.SH DIAGNOSTICS
Richard Lowec10c16d2011-03-14 14:05:30 -0400722\fBRead error\fR is indistinguishable from end of file on most devices. Check
723the block count.
724.SH NOTES
Richard Lowec10c16d2011-03-14 14:05:30 -0400725Portable applications should use \fBcksum\fR(1). The default algorithm for this
726command is defined in the POSIX standard and is identical across platforms.
727.sp
728.LP
Peter Tribble9dd2e6b2021-06-08 18:29:08 +0100729\fBsum\fR and \fB/usr/ucb/sum\fR (see \fBsum\fR(1B)) return different checksums.