← 返回命令列表

Linux command

xxhsum 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

xxhsum [path/to/file]

Example

xxhsum -H0 [path/to/file]

Example

xxhsum -H2 [path/to/file]

Verify checksums

xxhsum -c [path/to/checksums.xxh]

Example

xxhsum -b

说明

xxhsum prints or checks xxHash (32, 64, or 128 bit) checksums. xxHash is an extremely fast non-cryptographic hash function, suitable for integrity checking where speed is important. When no FILE is specified, reads from standard input. The command line syntax is similar to md5sum(1). Equivalent shortcut commands: xxh32sum (same as xxhsum -H0), xxh64sum (same as xxhsum -H1), xxh128sum (same as xxhsum -H2).

参数

-H _HASHTYPE_
Hash algorithm: 0 (XXH32), 1 (XXH64, default), 2 (XXH128), 3 (XXH3). Also accepts 32, 64, 128 as aliases.
-b
Activate benchmark mode
-B _BLOCKSIZE_
Set benchmark block size in bytes (default: 102400)
-i _ITERATIONS_
Set number of benchmark iterations (default: 3)
-c, --check _FILE_
Verify checksums from file
-q, --quiet
Suppress OK messages during verification
-w, --warn
Warn about malformed checksum lines
--strict
Return error on invalid checksum lines
--status
Silent verification; indicate result only via exit code
--tag
Output in BSD-style format
--little-endian
Display checksum in little-endian format (default is big-endian)
-h, --help
Display help
-V, --version
Display version

FAQ

What is the xxhsum command used for?

xxhsum prints or checks xxHash (32, 64, or 128 bit) checksums. xxHash is an extremely fast non-cryptographic hash function, suitable for integrity checking where speed is important. When no FILE is specified, reads from standard input. The command line syntax is similar to md5sum(1). Equivalent shortcut commands: xxh32sum (same as xxhsum -H0), xxh64sum (same as xxhsum -H1), xxh128sum (same as xxhsum -H2).

How do I run a basic xxhsum example?

Run `xxhsum [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -H _HASHTYPE_ do in xxhsum?

Hash algorithm: 0 (XXH32), 1 (XXH64, default), 2 (XXH128), 3 (XXH3). Also accepts 32, 64, 128 as aliases.