b2sum: Get BLAKE2 Checksum

b2sum

CategoryCommand Line Program
Part OfGUN Core Utilities
ClassificationTier 1
Official Documentation GNU b2sum

1 Description

The b2sum program accepts as input the name of zero or more files. For each file the b2sum program will compute a checksum using the BLAKE2 algorithm. The checksum(s) will be printed to STDOUT with one file checksum being output per line.

2 Arguments

The table below lists the command line options for the b2sum program.

Argument Description
-l, --length Alter the default digest length. The value specified is the length in bits and thus must be a multiple of 8. This option will be ignored when --check is specified.
--help Print some information about how the b2sum program works.
--version Print version information and exit.

3 Return Values

The b2sum will exit with zero upon success and a positive integer otherwise.

b2sum Return Values
Return Value Description
0 Successful termination. b2sum completed successfully.

4 Examples

4.1 Get Checksum For File

The example below demonstrates using the b2sum program to obtain a BLAKE2 checksum for a text file.

user-1@vm:~$ b2sum file_1.txt
fec91c70284c72d0d4e3684788a90de9338a5b2f47f01fedbe203cafd68708718ae5672d10eca804a8121904047d40d1d6cf11e7a76419357a9469af41f22d01  file_1.txt
user-1@vm:~$ 

This document was last updated: