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
|
|
|
|
--------
|
|
|
|
|
|
|
|
`xxhsum` [<OPTION>] ... [<FILE>] ...
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Print or check xxHash (32 or 64bit) checksums. When <FILE> is `-`, read
|
|
|
|
standard input.
|
|
|
|
|
|
|
|
`xxhsum` supports a command line syntax similar but not indentical to
|
2016-02-21 00:46:58 +00:00
|
|
|
md5sum(1). Differences are: `xxhsum` doesn't have text/binary mode switch
|
2016-02-22 13:10:25 +00:00
|
|
|
(`-b`, `-t`); `xxhsum` always treats file as binary file; `xxhsum` has hash
|
|
|
|
bit width switch (`-H`);
|
2016-02-19 18:08:46 +00:00
|
|
|
|
2016-02-21 14:20:47 +00:00
|
|
|
Since xxHash is non-cryptographic checksum algorithm, `xxhsum` should not be
|
|
|
|
used any more for security related purposes.
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
2016-02-21 13:57:42 +00:00
|
|
|
* `-b`:
|
|
|
|
Benchmark mode
|
|
|
|
|
|
|
|
* `-B`<BLOCKSIZE>:
|
|
|
|
<BLOCKSIZE> specifies benchmark mode's test data block size in bytes.
|
|
|
|
Default value is 102400
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
* `-c`, `--check`:
|
|
|
|
Read xxHash sums from the <FILE>s and check them
|
|
|
|
|
2016-02-22 13:12:43 +00:00
|
|
|
* `-h`, `--help`:
|
2016-02-21 13:57:42 +00:00
|
|
|
Display help and exit
|
|
|
|
|
2016-02-19 18:08:46 +00:00
|
|
|
* `-H`<HASHTYPE>:
|
|
|
|
Hash selection. <HASHTYPE> means `0`=32bits, `1`=64bits.
|
|
|
|
Default value is `1` (64bits)
|
|
|
|
|
2016-02-21 13:57:42 +00:00
|
|
|
* `--little-endian`:
|
|
|
|
Set output hexadecimal checksum value as little endian convention.
|
|
|
|
By default, value is displayed as big endian
|
|
|
|
|
2016-02-22 13:12:43 +00:00
|
|
|
* `-V`, `--version`:
|
2016-02-21 13:57:42 +00:00
|
|
|
Display xxhsum version
|
|
|
|
|
2016-02-21 00:46:58 +00:00
|
|
|
**The following four options are useful only when verifying checksums (`-c`)**
|
|
|
|
|
|
|
|
* `--quiet`:
|
|
|
|
Exit non-zero for improperly formatted checksum lines
|
2016-02-19 18:08:46 +00:00
|
|
|
|
|
|
|
* `--strict`:
|
|
|
|
Don't print OK for each successfully verified file
|
|
|
|
|
|
|
|
* `--status`:
|
|
|
|
Don't output anything, status code shows success
|
|
|
|
|
2016-02-22 13:10:25 +00:00
|
|
|
* `-w`, `--warn`:
|
2016-02-19 18:08:46 +00:00
|
|
|
Warn about improperly formatted checksum lines
|
|
|
|
|
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-19 18:08:46 +00:00
|
|
|
BUGS
|
|
|
|
----
|
|
|
|
|
|
|
|
Report bugs at: https://github.com/Cyan4973/xxHash/issues/
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Yann Collet
|