2016-02-19 18:08:46 +00:00
.
2017-09-08 08:00:32 +00:00
.TH "XXHSUM" "1" "September 2017" "xxhsum 0.6.3" "User Commands"
2016-02-19 18:08:46 +00:00
.
.SH "NAME"
2016-02-21 14:26:31 +00:00
\fB xxhsum\fR \- print or check xxHash non\- cryptographic checksums
2016-02-19 18:08:46 +00:00
.
.SH "SYNOPSIS"
2017-09-08 08:00:32 +00:00
\fB xxhsum [<OPTION>] \. \. \. [<FILE>] \. \. \. \fR
2016-02-19 18:08:46 +00:00
.
2016-08-23 09:42:53 +00:00
.br
2017-09-08 08:00:32 +00:00
\fB xxhsum \- b [<OPTION>] \. \. \. \fR
2016-08-23 09:42:53 +00:00
.
.P
\fB xxh32sum\fR is equivalent to \fB xxhsum \- H0\fR
.
.br
\fB xxh64sum\fR is equivalent to \fB xxhsum \- H1\fR
.
2016-02-19 18:08:46 +00:00
.SH "DESCRIPTION"
Print or check xxHash (32 or 64bit) checksums\. When \fI FILE\fR is \fB \- \fR , read standard input\.
.
.P
2016-10-26 14:47:53 +00:00
\fB xxhsum\fR supports a command line syntax similar but not identical to md5sum(1)\. Differences are: \fB xxhsum\fR doesn\' t have text/binary mode switch (\fB \- b\fR , \fB \- t\fR ); \fB xxhsum\fR always treats file as binary file; \fB xxhsum\fR has hash bit width switch (\fB \- H\fR );
2016-02-19 18:08:46 +00:00
.
2016-02-21 14:26:31 +00:00
.P
2016-08-23 09:42:53 +00:00
As xxHash is a fast non\- cryptographic checksum algorithm, \fB xxhsum\fR should not be used for security related purposes\.
2016-02-21 14:26:31 +00:00
.
2016-08-23 09:42:53 +00:00
.P
\fB xxhsum \- b\fR invokes benchmark mode\. See \fI OPTIONS\fR and \fI EXAMPLES\fR for details\.
2016-02-21 14:26:31 +00:00
.
2016-08-23 09:42:53 +00:00
.SH "OPTIONS"
2016-02-19 18:08:46 +00:00
.
.TP
2016-08-23 09:42:53 +00:00
\fB \- V\fR , \fB \- \- version\fR
Display xxhsum version
2016-02-21 14:26:31 +00:00
.
.TP
2016-02-19 18:08:46 +00:00
\fB \- H\fR \fI HASHTYPE\fR
Hash selection\. \fI HASHTYPE\fR means \fB 0\fR =32bits, \fB 1\fR =64bits\. Default value is \fB 1\fR (64bits)
.
2016-02-21 14:26:31 +00:00
.TP
\fB \- \- little\- endian\fR
2016-08-23 09:42:53 +00:00
Set output hexadecimal checksum value as little endian convention\. By default, value is displayed as big endian\.
2016-02-21 14:26:31 +00:00
.
.TP
2016-08-23 09:42:53 +00:00
\fB \- h\fR , \fB \- \- help\fR
Display help and exit
2016-02-21 14:26:31 +00:00
.
2016-02-19 18:08:46 +00:00
.P
2016-02-21 00:46:58 +00:00
\fB The following four options are useful only when verifying checksums (\fB \- c\fR )\fR
.
.TP
2016-08-23 09:42:53 +00:00
\fB \- c\fR , \fB \- \- check\fR
Read xxHash sums from the \fI FILE\fR s and check them
.
.TP
2016-02-21 00:46:58 +00:00
\fB \- \- quiet\fR
Exit non\- zero for improperly formatted checksum lines
2016-02-19 18:08:46 +00:00
.
.TP
\fB \- \- strict\fR
Don\' t print OK for each successfully verified file
.
.TP
\fB \- \- status\fR
Don\' t output anything, status code shows success
.
.TP
2016-02-22 13:23:29 +00:00
\fB \- w\fR , \fB \- \- warn\fR
2016-02-19 18:08:46 +00:00
Warn about improperly formatted checksum lines
.
2016-08-23 09:42:53 +00:00
.P
\fB The following options are useful only benchmark purpose\fR
.
.TP
\fB \- b\fR
Benchmark mode\. See \fI EXAMPLES\fR for details\.
.
.TP
\fB \- B\fR \fI BLOCKSIZE\fR
Only useful for benchmark mode (\fB \- b\fR )\. See \fI EXAMPLES\fR for details\. \fI BLOCKSIZE\fR specifies benchmark mode\' s test data block size in bytes\. Default value is 102400
.
.TP
\fB \- i\fR \fI ITERATIONS\fR
Only useful for benchmark mode (\fB \- b\fR )\. See \fI EXAMPLES\fR for details\. \fI ITERATIONS\fR specifies number of iterations in benchmark\. Single iteration takes at least 2500 milliseconds\. Default value is 3
.
2016-02-21 00:46:58 +00:00
.SH "EXIT STATUS"
\fB xxhsum\fR exit \fB 0\fR on success, \fB 1\fR if at least one file couldn\' t be read or doesn\' t have the same checksum as the \fB \- c\fR option\.
.
.SH "EXAMPLES"
Output xxHash (64bit) checksum values of specific files to standard output
.
.IP "" 4
.
.nf
$ xxhsum \- H1 foo bar baz
.
.fi
.
.IP "" 0
.
.P
2016-02-21 14:26:31 +00:00
Output xxHash (32bit and 64bit) checksum values of specific files to standard output, and redirect it to \fB xyz\. xxh32\fR and \fB qux\. xxh64\fR
2016-02-21 00:46:58 +00:00
.
.IP "" 4
.
.nf
2016-02-21 14:26:31 +00:00
$ xxhsum \- H0 foo bar baz > xyz\. xxh32
$ xxhsum \- H1 foo bar baz > qux\. xxh64
2016-02-21 00:46:58 +00:00
.
.fi
.
.IP "" 0
.
.P
2016-02-21 14:26:31 +00:00
Read xxHash sums from specific files and check them
2016-02-21 00:46:58 +00:00
.
.IP "" 4
.
.nf
2016-02-21 14:26:31 +00:00
$ xxhsum \- c xyz\. xxh32 qux\. xxh64
2016-02-21 00:46:58 +00:00
.
.fi
.
.IP "" 0
.
2016-08-23 09:42:53 +00:00
.P
Benchmark xxHash algorithm for 16384 bytes data in 10 times\. \fB xxhsum\fR benchmarks xxHash algorithm for 32\- bit and 64\- bit and output results to standard output\. First column means algorithm, second column is source data size in bytes, last column means hash generation speed in mega\- bytes per seconds\.
.
.IP "" 4
.
.nf
$ xxhsum \- b \- i10 \- B16384
.
.fi
.
.IP "" 0
.
2016-02-19 18:08:46 +00:00
.SH "BUGS"
Report bugs at: https://github\. com/Cyan4973/xxHash/issues/
.
.SH "AUTHOR"
Yann Collet
2016-08-23 09:42:53 +00:00
.
.SH "SEE ALSO"
md5sum(1)