1XXHSUM(1)                        User Commands                       XXHSUM(1)
2
3
4

NAME

6       xxhsum - print or check xxHash non-cryptographic checksums
7

SYNOPSIS

9       xxhsum [<OPTION>] ... [<FILE>] ...
10       xxhsum -b [<OPTION>] ...
11
12       xxh32sum is equivalent to xxhsum -H0
13       xxh64sum is equivalent to xxhsum -H1
14

DESCRIPTION

16       Print  or  check  xxHash  (32 or 64bit) checksums. When FILE is -, read
17       standard input.
18
19       xxhsum supports a command line syntax  similar  but  not  identical  to
20       md5sum(1). Differences are: xxhsum doesn´t have text/binary mode switch
21       (-b, -t); xxhsum always treats file as binary file; xxhsum has hash bit
22       width switch (-H);
23
24       As xxHash is a fast non-cryptographic checksum algorithm, xxhsum should
25       not be used for security related purposes.
26
27       xxhsum -b invokes benchmark mode. See OPTIONS and EXAMPLES for details.
28

OPTIONS

30       -V, --version
31              Display xxhsum version
32
33       -HHASHTYPE
34              Hash selection. HASHTYPE means 0=32bits, 1=64bits. Default value
35              is 1 (64bits)
36
37       --little-endian
38              Set  output  hexadecimal checksum value as little endian conven‐
39              tion. By default, value is displayed as big endian.
40
41       -h, --help
42              Display help and exit
43
44       The following four options are useful  only  when  verifying  checksums
45       (-c)
46
47       -c, --check
48              Read xxHash sums from the FILEs and check them
49
50       --quiet
51              Exit non-zero for improperly formatted checksum lines
52
53       --strict
54              Don´t print OK for each successfully verified file
55
56       --status
57              Don´t output anything, status code shows success
58
59       -w, --warn
60              Warn about improperly formatted checksum lines
61
62       The following options are useful only benchmark purpose
63
64       -b     Benchmark mode. See EXAMPLES for details.
65
66       -BBLOCKSIZE
67              Only  useful  for benchmark mode (-b). See EXAMPLES for details.
68              BLOCKSIZE specifies benchmark mode´s test  data  block  size  in
69              bytes. Default value is 102400
70
71       -iITERATIONS
72              Only  useful  for benchmark mode (-b). See EXAMPLES for details.
73              ITERATIONS specifies number of iterations in  benchmark.  Single
74              iteration takes at least 2500 milliseconds. Default value is 3
75

EXIT STATUS

77       xxhsum  exit  0  on success, 1 if at least one file couldn´t be read or
78       doesn´t have the same checksum as the -c option.
79

EXAMPLES

81       Output xxHash (64bit) checksum values of  specific  files  to  standard
82       output
83
84
85
86           $ xxhsum -H1 foo bar baz
87
88
89
90       Output  xxHash  (32bit  and 64bit) checksum values of specific files to
91       standard output, and redirect it to xyz.xxh32 and qux.xxh64
92
93
94
95           $ xxhsum -H0 foo bar baz > xyz.xxh32
96           $ xxhsum -H1 foo bar baz > qux.xxh64
97
98
99
100       Read xxHash sums from specific files and check them
101
102
103
104           $ xxhsum -c xyz.xxh32 qux.xxh64
105
106
107
108       Benchmark xxHash algorithm for 16384 bytes data  in  10  times.  xxhsum
109       benchmarks xxHash algorithm for 32-bit and 64-bit and output results to
110       standard output. First column means algorithm, second column is  source
111       data  size  in  bytes,  last  column  means  hash  generation  speed in
112       mega-bytes per seconds.
113
114
115
116           $ xxhsum -b -i10 -B16384
117
118
119

BUGS

121       Report bugs at: https://github.com/Cyan4973/xxHash/issues/
122

AUTHOR

124       Yann Collet
125

SEE ALSO

127       md5sum(1)
128
129
130
131xxhsum 0.6.3                    September 2017                       XXHSUM(1)
Impressum