Forrest logo
back to the b3sum tool

b3sum:tldr:ef5dc

b3sum: Read a file of BLAKE3 sums and filenames and verify all files have matching checksums.
$ b3sum --check ${filename-b3}
try on your machine

This command is using the "b3sum" utility to check a file's integrity by calculating its Blake3 hash value. Here's a breakdown of the command:

  • "b3sum": It is the name of the utility being executed.
  • "--check": This flag tells the b3sum utility to check the integrity of a file instead of calculating the hash.
  • "${filename-b3}": This variable syntax is used to substitute the value of the "filename" variable. If the "filename" variable is not set, it will default to "b3". So, this command will check the integrity of a file named "filename" if the variable is set, or "b3" if it is not set.

To summarize, this command uses b3sum to check the integrity of a specified file or a file named "b3" by calculating and comparing the Blake3 hash value.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the b3sum tool