1CKSUM(1) User Commands CKSUM(1)
2
3
4
6 cksum - compute and verify file checksums
7
9 cksum [OPTION]... [FILE]...
10
12 Print or verify checksums. By default use the 32 bit CRC algorithm.
13
14 With no FILE, or when FILE is -, read standard input.
15
16 Mandatory arguments to long options are mandatory for short options
17 too.
18
19 -a, --algorithm=TYPE
20 select the digest type to use. See DIGEST below.
21
22 -c, --check
23 read checksums from the FILEs and check them
24
25 -l, --length=BITS
26 digest length in bits; must not exceed the max for the blake2
27 algorithm and must be a multiple of 8
28
29 --tag create a BSD-style checksum (the default)
30
31 --untagged
32 create a reversed style checksum, without digest type
33
34 -z, --zero
35 end each output line with NUL, not newline, and disable file
36 name escaping
37
38 The following five options are useful only when verifying checksums:
39 --ignore-missing
40 don't fail or report status for missing files
41
42 --quiet
43 don't print OK for each successfully verified file
44
45 --status
46 don't output anything, status code shows success
47
48 --strict
49 exit non-zero for improperly formatted checksum lines
50
51 -w, --warn
52 warn about improperly formatted checksum lines
53
54 --debug
55 indicate which implementation used
56
57 --help display this help and exit
58
59 --version
60 output version information and exit
61
62 DIGEST determines the digest algorithm and default output format:
63 sysv (equivalent to sum -s)
64
65 bsd (equivalent to sum -r)
66
67 crc (equivalent to cksum)
68
69 md5 (equivalent to md5sum)
70
71 sha1 (equivalent to sha1sum)
72
73 sha224 (equivalent to sha224sum)
74
75 sha256 (equivalent to sha256sum)
76
77 sha384 (equivalent to sha384sum)
78
79 sha512 (equivalent to sha512sum)
80
81 blake2b
82 (equivalent to b2sum)
83
84 sm3 (only available through cksum)
85
86 When checking, the input should be a former output of this program, or
87 equivalent standalone program.
88
90 Written by Padraig Brady and Q. Frank Xia.
91
93 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
94 Report any translation bugs to <https://translationproject.org/team/>
95
97 Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU
98 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
99 This is free software: you are free to change and redistribute it.
100 There is NO WARRANTY, to the extent permitted by law.
101
103 Full documentation <https://www.gnu.org/software/coreutils/cksum>
104 or available locally via: info '(coreutils) cksum invocation'
105
106
107
108GNU coreutils 9.1 January 2023 CKSUM(1)