Forrest logo
back to the shasum tool

shasum:tldr:11563

shasum: Only show a message for missing files or when verification fails.
$ shasum --check --quiet ${filename}
try on your machine

The command shasum is a command-line utility used to calculate and verify the SHA checksum of a file. The command you provided, shasum --check --quiet ${filename}, has the following components:

  • shasum: This is the main command, invoking the SHA checksum utility.
  • --check: This option tells shasum to perform a check operation to verify the SHA checksums.
  • --quiet: This option suppresses the output of the shasum command. It disables the display of file names and the OK or FAILED indications.
  • ${filename}: This is a placeholder for the actual name of the file you want to check the SHA checksum against.

In summary, the given command calculates and verifies the SHA checksum of the specified file, but does so quietly without producing any output.

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