Forrest logo
back to the b2sum tool

b2sum:tldr:5c109

b2sum: Calculate and save the list of BLAKE2 checksums to a file.
$ b2sum ${filename1 filename2 ---} > ${filename-b2}
try on your machine

This command is using the b2sum utility in Linux to compute the BLAKE2 checksums of one or more files and store the result into another file.

Here's a breakdown of the command:

  • b2sum: This is the command-line utility used to compute the BLAKE2 checksums.
  • ${filename1 filename2 ---}: These are placeholder values for the names of the files you want to compute the checksums for. Each filename should be separated by a space. The --- indicates that you can specify any number of files.
  • >: This is the output redirection operator. It redirects the output of the command to a file instead of displaying it on the screen.
  • ${filename-b2}: This is the name of the file where the checksums will be stored. You can replace ${filename-b2} with the desired filename.

To use this command, you would replace ${filename1 filename2 ---} with the actual filenames, and ${filename-b2} with the desired output filename.

For example, if you have two files named file1.txt and file2.txt, and you want to compute the checksums and store the result in a file named checksums.txt, you would run the following command:

b2sum file1.txt file2.txt > checksums.txt

After the command executes, the checksums of file1.txt and file2.txt will be calculated and saved in the checksums.txt file.

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 b2sum tool