2016-02-21 14:20:47 +00:00
|
|
|
xxhsum(1) -- print or check xxHash non-cryptographic checksums
|
|
|
|
==============================================================
|
2016-02-19 18:08:46 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2017-07-29 17:50:22 +00:00
|
|
|
`xxhsum [<OPTION>] ... [<FILE>] ...`
|
|
|
|
`xxhsum -b [<OPTION>] ...`
|
2016-02-19 18:08:46 +00:00
|
|
|
|
2016-08-23 09:42:53 +00:00
|
|
|
`xxh32sum` is equivalent to `xxhsum -H0`
|
2019-09-29 00:55:41 +00:00
|
|
|
`xxh64sum` is equivalent to `xxhsum -H1`
|
|
|
|
`xxh128sum` is equivalent to `xxhsum -H2`
|
2016-08-23 09:42:53 +00:00
|
|
|
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2019-09-29 00:55:41 +00:00
|
|
|
Print or check xxHash (32, 64 or 128 bits) checksums. When <FILE> is `-`, read
|
2016-02-19 18:08:46 +00:00
|
|
|
standard input.
|
|
|
|
|
2016-10-26 14:47:53 +00:00
|
|
|
`xxhsum` supports a command line syntax similar but not identical to
|
2016-08-23 09:42:53 +00:00
|
|
|
md5sum(1). Differences are:
|
|
|
|
`xxhsum` doesn't have text/binary mode switch (`-b`, `-t`);
|
2020-03-02 20:20:49 +00:00
|
|
|
`xxhsum` always treats files as binary file;
|
|
|
|
`xxhsum` has a hash bit width switch (`-H`);
|
2016-02-19 18:08:46 +00:00
|
|
|
|
2016-08-23 09:42:53 +00:00
|
|
|
As xxHash is a fast non-cryptographic checksum algorithm,
|
|
|
|
`xxhsum` should not be used for security related purposes.
|
2016-02-21 14:20:47 +00:00
|
|
|
|
2016-02-23 05:13:38 +00:00
|
|
|
`xxhsum -b` invokes benchmark mode. See [OPTIONS](#OPTIONS) and [EXAMPLES](#EXAMPLES) for details.
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
2016-08-23 09:42:53 +00:00
|
|
|
* `-V`, `--version`:
|
2020-03-02 20:20:49 +00:00
|
|
|
Displays xxhsum version and exits
|
2016-02-21 13:57:42 +00:00
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
* `-H`<HASHTYPE>:
|
2020-03-02 20:20:49 +00:00
|
|
|
Hash selection. <HASHTYPE> means `0`=32bits, `1`=64bits, `2`=128bits.
|
2016-02-19 18:08:46 +00:00
|
|
|
Default value is `1` (64bits)
|
|
|
|
|
2019-10-07 15:34:39 +00:00
|
|
|
* `-q`, `--quiet`:
|
2020-03-02 20:20:49 +00:00
|
|
|
Remove status messages like "Loading..." written to `stderr`.
|
2019-10-07 15:34:39 +00:00
|
|
|
|
2016-02-21 13:57:42 +00:00
|
|
|
* `--little-endian`:
|
|
|
|
Set output hexadecimal checksum value as little endian convention.
|
2016-08-23 09:42:53 +00:00
|
|
|
By default, value is displayed as big endian.
|
2016-02-21 13:57:42 +00:00
|
|
|
|
2016-08-23 09:42:53 +00:00
|
|
|
* `-h`, `--help`:
|
2020-03-02 20:20:49 +00:00
|
|
|
Displays help and exits
|
2016-02-21 13:57:42 +00:00
|
|
|
|
2016-02-21 00:46:58 +00:00
|
|
|
**The following four options are useful only when verifying checksums (`-c`)**
|
|
|
|
|
2019-12-27 23:21:26 +00:00
|
|
|
* `-c`, `--check` <FILE>:
|
|
|
|
Read xxHash sums from <FILE> and check them
|
2016-08-23 09:42:53 +00:00
|
|
|
|
2019-12-27 23:21:26 +00:00
|
|
|
* `-q`, `--quiet`:
|
|
|
|
On top of removing status messages written to `stderr`,
|
|
|
|
also don't print OK for each successfully verified file
|
2016-02-19 18:08:46 +00:00
|
|
|
|
|
|
|
* `--strict`:
|
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.
|
2016-02-19 18:08:46 +00:00
|
|
|
|
|
|
|
* `--status`:
|
2019-12-27 23:21:26 +00:00
|
|
|
Don't output anything. Status code shows success.
|
2016-02-19 18:08:46 +00:00
|
|
|
|
2016-02-22 13:10:25 +00:00
|
|
|
* `-w`, `--warn`:
|
2019-12-27 23:21:26 +00:00
|
|
|
Emit a warning message about each improperly formatted checksum line.
|
2016-02-19 18:08:46 +00:00
|
|
|
|
2016-02-23 05:13:38 +00:00
|
|
|
**The following options are useful only benchmark purpose**
|
|
|
|
|
|
|
|
* `-b`:
|
|
|
|
Benchmark mode. See [EXAMPLES](#EXAMPLES) for details.
|
|
|
|
|
|
|
|
* `-B`<BLOCKSIZE>:
|
|
|
|
Only useful for benchmark mode (`-b`). See [EXAMPLES](#EXAMPLES) for details.
|
|
|
|
<BLOCKSIZE> specifies benchmark mode's test data block size in bytes.
|
|
|
|
Default value is 102400
|
|
|
|
|
|
|
|
* `-i`<ITERATIONS>:
|
|
|
|
Only useful for benchmark mode (`-b`). See [EXAMPLES](#EXAMPLES) for details.
|
|
|
|
<ITERATIONS> specifies number of iterations in benchmark. Single iteration
|
2019-09-29 00:55:41 +00:00
|
|
|
lasts approximately 1000 milliseconds. Default value is 3
|
2016-02-23 05:13:38 +00:00
|
|
|
|
2016-02-21 00:46:58 +00:00
|
|
|
EXIT STATUS
|
|
|
|
-----------
|
|
|
|
|
|
|
|
`xxhsum` exit `0` on success, `1` if at least one file couldn't be read or
|
|
|
|
doesn't have the same checksum as the `-c` option.
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
Output xxHash (64bit) checksum values of specific files to standard output
|
|
|
|
|
|
|
|
$ xxhsum -H1 foo bar baz
|
|
|
|
|
2016-02-21 14:25:24 +00:00
|
|
|
Output xxHash (32bit and 64bit) checksum values of specific files to standard
|
|
|
|
output, and redirect it to `xyz.xxh32` and `qux.xxh64`
|
2016-02-21 00:46:58 +00:00
|
|
|
|
2016-02-21 14:25:24 +00:00
|
|
|
$ xxhsum -H0 foo bar baz > xyz.xxh32
|
|
|
|
$ xxhsum -H1 foo bar baz > qux.xxh64
|
2016-02-21 00:46:58 +00:00
|
|
|
|
2016-02-21 14:25:24 +00:00
|
|
|
Read xxHash sums from specific files and check them
|
2016-02-21 00:46:58 +00:00
|
|
|
|
2016-02-21 14:25:24 +00:00
|
|
|
$ xxhsum -c xyz.xxh32 qux.xxh64
|
2016-02-21 00:46:58 +00:00
|
|
|
|
2016-02-23 05:13:38 +00:00
|
|
|
Benchmark xxHash algorithm for 16384 bytes data in 10 times. `xxhsum`
|
2019-09-29 00:55:41 +00:00
|
|
|
benchmarks all xxHash variants and output results to standard output.
|
2020-03-02 20:20:49 +00:00
|
|
|
The first column is the algorithm, thw 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.
|
2016-02-23 05:13:38 +00:00
|
|
|
|
|
|
|
$ xxhsum -b -i10 -B16384
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
BUGS
|
|
|
|
----
|
|
|
|
|
|
|
|
Report bugs at: https://github.com/Cyan4973/xxHash/issues/
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Yann Collet
|
2016-02-23 05:13:38 +00:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
md5sum(1)
|