xxhsum [<OPTION>] ... [<FILE>] ...
xxhsum -b [<OPTION>] ...
xxh32sum is equivalent to
xxh64sum is equivalent to
Print or check xxHash (32 or 64bit) checksums. When is
-, read standard input.
xxhsum supports a command line syntax similar but not identical to md5sum(1). Differences are:
xxhsum doesn't have text/binary mode switch (
xxhsum always treats file as binary file;
xxhsum has hash bit width switch (
As xxHash is a fast non-cryptographic checksum algorithm,
xxhsum should not be used for security related purposes.
--version: Display xxhsum version
-H: Hash selection. means
1=64bits. Default value is
--little-endian: Set output hexadecimal checksum value as little endian convention. By default, value is displayed as big endian.
--help: Display help and exit
The following four options are useful only when verifying checksums (
--check: Read xxHash sums from the s and check them
--quiet: Exit non-zero for improperly formatted checksum lines
--strict: Don't print OK for each successfully verified file
--status: Don't output anything, status code shows success
--warn: Warn about improperly formatted checksum lines
The following options are useful only benchmark purpose
-b: Benchmark mode. See EXAMPLES for details.
-B: Only useful for benchmark mode (
-b). See EXAMPLES for details. specifies benchmark mode's test data block size in bytes. Default value is 102400
-i: Only useful for benchmark mode (
-b). See EXAMPLES for details. specifies number of iterations in benchmark. Single iteration takes at least 2500 milliseconds. Default value is 3
0 on success,
1 if at least one file couldn‘t be read or doesn’t have the same checksum as the
Output xxHash (64bit) checksum values of specific files to standard output
$ xxhsum -H1 foo bar baz
Output xxHash (32bit and 64bit) checksum values of specific files to standard output, and redirect it to
$ xxhsum -H0 foo bar baz > xyz.xxh32 $ xxhsum -H1 foo bar baz > qux.xxh64
Read xxHash sums from specific files and check them
$ xxhsum -c xyz.xxh32 qux.xxh64
Benchmark xxHash algorithm for 16384 bytes data in 10 times.
xxhsum 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.
$ xxhsum -b -i10 -B16384
Report bugs at: https://github.com/Cyan4973/xxHash/issues/