2019-10-07 15:34:39 +00:00
.
2019-12-27 23:21:26 +00:00
.TH "XXHSUM" "1" "December 2019" "xxhsum 0.7.2" "User Commands"
2019-10-07 15:34:39 +00:00
.
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
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.SH "SYNOPSIS"
2020-03-02 20:20:49 +00:00
\fB xxhsum [<OPTION>]\. \. \. [<FILE>]\. \. \. \fR
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.br
2020-03-02 20:20:49 +00:00
\fB xxhsum \- b [<OPTION>]\. \. \. \fR
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.P
\fB xxh32sum\fR is equivalent to \fB xxhsum \- H0\fR
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.br
\fB xxh64sum\fR is equivalent to \fB xxhsum \- H1\fR
2019-10-07 15:34:39 +00:00
.
2019-09-29 00:55:41 +00:00
.br
\fB xxh128sum\fR is equivalent to \fB xxhsum \- H2\fR
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.SH "DESCRIPTION"
2019-09-29 00:55:41 +00:00
Print or check xxHash (32, 64 or 128 bits) checksums\. When \fI FILE\fR is \fB \- \fR , read standard input\.
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.P
2020-03-02 20:20:49 +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 files as binary files; \fB xxhsum\fR has a hash bit width switch (\fB \- H\fR );
2019-10-07 15:34:39 +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\.
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.P
2019-10-07 15:34:39 +00:00
\fB xxhsum \- b\fR invokes benchmark mode\. See \fI OPTIONS\fR and \fI EXAMPLES\fR for details\.
.
2016-08-23 09:42:53 +00:00
.SH "OPTIONS"
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.TP
2016-08-23 09:42:53 +00:00
\fB \- V\fR , \fB \- \- version\fR
2020-03-02 20:20:49 +00:00
Displays xxhsum version and exits
2019-10-07 15:34:39 +00:00
.
2016-02-21 14:26:31 +00:00
.TP
2016-02-19 18:08:46 +00:00
\fB \- H\fR \fI HASHTYPE\fR
2019-09-29 00:55:41 +00:00
Hash selection\. \fI HASHTYPE\fR means \fB 0\fR =32bits, \fB 1\fR =64bits, \fB 2\fR =128bits\. Default value is \fB 1\fR (64bits)
2019-10-07 15:34:39 +00:00
.
.TP
2016-02-21 14:26:31 +00:00
\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\.
2019-10-07 15:34:39 +00:00
.
2016-02-21 14:26:31 +00:00
.TP
2016-08-23 09:42:53 +00:00
\fB \- h\fR , \fB \- \- help\fR
2020-03-02 20:20:49 +00:00
Displays help and exits
2019-10-07 15:34:39 +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
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.TP
2019-12-27 23:21:26 +00:00
\fB \- c\fR , \fB \- \- check\fR \fI FILE\fR
Read xxHash sums from \fI FILE\fR and check them
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.TP
2019-12-27 23:21:26 +00:00
\fB \- q\fR , \fB \- \- quiet\fR
2020-05-27 18:43:41 +00:00
Don\' t print OK for each successfully verified file
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.TP
\fB \- \- strict\fR
2019-12-27 23:21:26 +00:00
Return an error code if any line in the file is invalid, not just if some checksums are wrong\. This policy is disabled by default, though UI will prompt an informational message if any line in the file is detected invalid\.
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.TP
\fB \- \- status\fR
2019-12-27 23:21:26 +00:00
Don\' t output anything\. Status code shows success\.
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.TP
2016-02-22 13:23:29 +00:00
\fB \- w\fR , \fB \- \- warn\fR
2019-12-27 23:21:26 +00:00
Emit a warning message about each improperly formatted checksum line\.
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.P
\fB The following options are useful only benchmark purpose\fR
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.TP
\fB \- b\fR
2019-10-07 15:34:39 +00:00
Benchmark mode\. See \fI EXAMPLES\fR for details\.
.
2016-08-23 09:42:53 +00:00
.TP
\fB \- B\fR \fI BLOCKSIZE\fR
2019-10-07 15:34:39 +00:00
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
.
2016-08-23 09:42:53 +00:00
.TP
\fB \- i\fR \fI ITERATIONS\fR
2019-10-07 15:34:39 +00:00
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 lasts approximately 1000 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\.
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.SH "EXAMPLES"
Output xxHash (64bit) checksum values of specific files to standard output
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 4
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.nf
2019-10-07 15:34:39 +00:00
2016-02-21 00:46:58 +00:00
$ xxhsum \- H1 foo bar baz
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.fi
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 0
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.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
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 4
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.nf
2019-10-07 15:34:39 +00:00
2016-02-21 14:26:31 +00:00
$ xxhsum \- H0 foo bar baz > xyz\. xxh32
$ xxhsum \- H1 foo bar baz > qux\. xxh64
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.fi
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 0
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.P
2016-02-21 14:26:31 +00:00
Read xxHash sums from specific files and check them
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 4
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.nf
2019-10-07 15:34:39 +00:00
2016-02-21 14:26:31 +00:00
$ xxhsum \- c xyz\. xxh32 qux\. xxh64
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.fi
2019-10-07 15:34:39 +00:00
.
2016-02-21 00:46:58 +00:00
.IP "" 0
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.P
2019-09-29 00:55:41 +00:00
Benchmark xxHash algorithm for 16384 bytes data in 10 times\. \fB xxhsum\fR benchmarks all xxHash variants and output results to standard output\.
2019-10-07 15:34:39 +00:00
.
2019-09-29 00:55:41 +00:00
.br
2020-03-02 20:20:49 +00:00
The first column is the algorithm, the second column is the source data size in bytes, the third column is the number of hashes generated per second (throughput), and finally, the last column translates speed in megabytes per second\.
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.IP "" 4
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.nf
2019-10-07 15:34:39 +00:00
2016-08-23 09:42:53 +00:00
$ xxhsum \- b \- i10 \- B16384
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.fi
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.IP "" 0
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.SH "BUGS"
Report bugs at: https://github\. com/Cyan4973/xxHash/issues/
2019-10-07 15:34:39 +00:00
.
2016-02-19 18:08:46 +00:00
.SH "AUTHOR"
Yann Collet
2019-10-07 15:34:39 +00:00
.
2016-08-23 09:42:53 +00:00
.SH "SEE ALSO"
md5sum(1)