File: cksum.1

package info (click to toggle)
coreutils 9.10-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 70,560 kB
  • sloc: ansic: 253,546; sh: 30,931; perl: 8,141; yacc: 1,846; makefile: 198; python: 47; sed: 16
file content (122 lines) | stat: -rw-r--r-- 4,672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.50.1.
.TH CKSUM "1" "February 2026" "GNU coreutils 9.10" "User Commands"
.SH NAME
cksum \- compute and verify file checksums
.SH SYNOPSIS
.B cksum
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
.SH DESCRIPTION
.\" Add any additional description here
.PP
Print or verify checksums.
By default use the 32 bit CRC algorithm.
.PP
With no FILE, or when FILE is \-, read standard input.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum-a'\fB\-a, \-\-algorithm=\,TYPE\fP\X'tty: link'\/\fR
select the digest type to use.  See DIGEST below
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--base64'\fB\-\-base64\fP\X'tty: link'
emit base64\-encoded digests, not hexadecimal
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum-c'\fB\-c, \-\-check\fP\X'tty: link'
read checksums from the FILEs and check them
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum-l'\fB\-l, \-\-length=\,BITS\fP\X'tty: link'\/\fR
digest length in bits; must not exceed the max size
and must be a multiple of 8 for blake2b;
must be 224, 256, 384, or 512 for sha2 or sha3
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--raw'\fB\-\-raw\fP\X'tty: link'
emit a raw binary digest, not hexadecimal
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--tag'\fB\-\-tag\fP\X'tty: link'
create a BSD\-style checksum (the default)
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--untagged'\fB\-\-untagged\fP\X'tty: link'
create a reversed style checksum, without digest type
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum-z'\fB\-z, \-\-zero\fP\X'tty: link'
end each output line with NUL, not newline,
and disable file name escaping
.SS "The following five options are useful only when verifying checksums:"
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--ignore-missing'\fB\-\-ignore\-missing\fP\X'tty: link'
don't fail or report status for missing files
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--quiet'\fB\-\-quiet\fP\X'tty: link'
don't print OK for each successfully verified file
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--status'\fB\-\-status\fP\X'tty: link'
don't output anything, status code shows success
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--strict'\fB\-\-strict\fP\X'tty: link'
exit non\-zero for improperly formatted checksum lines
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum-w'\fB\-w, \-\-warn\fP\X'tty: link'
warn about improperly formatted checksum lines
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cksum--debug'\fB\-\-debug\fP\X'tty: link'
indicate which implementation used
.TP
\X'tty: link https://www.gnu.org/software/coreutils/cksum#cksum--help'\fB\-\-help\fP\X'tty: link'
display this help and exit
.TP
\X'tty: link https://www.gnu.org/software/coreutils/cksum#cksum--version'\fB\-\-version\fP\X'tty: link'
output version information and exit
.SS "DIGEST determines the digest algorithm and default output format:"
.TP
sysv
(equivalent to sum \fB\-s\fR)
.TP
bsd
(equivalent to sum \fB\-r\fR)
.TP
crc
(equivalent to cksum)
.TP
crc32b
(only available through cksum)
.TP
md5
(equivalent to md5sum)
.TP
sha1
(equivalent to sha1sum)
.TP
sha2
(equivalent to sha{224,256,384,512}sum)
.TP
sha3
(only available through cksum)
.TP
blake2b
(equivalent to b2sum)
.TP
sm3
(only available through cksum)
.PP
When checking, the input should be a former output of this program,
or equivalent standalone program.
.SH AUTHOR
Written by Padraig Brady and Q. Frank Xia.
.SH "REPORTING BUGS"
Report bugs to: bug\-coreutils@gnu.org
.br
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
.br
General help using GNU software: <https://www.gnu.org/gethelp/>
.br
Report any translation bugs to <https://translationproject.org/team/>
.SH COPYRIGHT
Copyright \(co 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
Full documentation <https://www.gnu.org/software/coreutils/cksum>
.br
or available locally via: info \(aq(coreutils) cksum invocation\(aq