Linux command
b2sum 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Calculate
b2sum [file]
Verify
b2sum -c [checksums.b2]
Example
b2sum -l [256] [file]
Example
b2sum [file1] [file2] [file3]
说明
b2sum computes and verifies BLAKE2b cryptographic checksums. BLAKE2 is a fast, secure hash function that outperforms MD5, SHA-1, and SHA-2 in software while providing at least as much security as SHA-3. The tool is part of GNU coreutils and provides similar functionality to md5sum and sha256sum.
参数
- -c, --check
- Verify checksums from file
- -l, --length _bits_
- Digest length in bits (default: 512)
- -b, --binary
- Read in binary mode
- -t, --text
- Read in text mode
- --tag
- Create BSD-style checksums
- --quiet
- Don't print OK for verified files
- --strict
- Exit non-zero on improperly formatted checksum lines
FAQ
What is the b2sum command used for?
b2sum computes and verifies BLAKE2b cryptographic checksums. BLAKE2 is a fast, secure hash function that outperforms MD5, SHA-1, and SHA-2 in software while providing at least as much security as SHA-3. The tool is part of GNU coreutils and provides similar functionality to md5sum and sha256sum.
How do I run a basic b2sum example?
Run `b2sum [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --check do in b2sum?
Verify checksums from file