shasum:tldr:19e9c
shasum: Only show a message when verification fails, ignoring missing files.
$ shasum --ignore-missing --check --quiet ${filename}
try on your machine
This command uses the shasum utility to perform a checksum verification on a file.
Here is a breakdown of the options and arguments used:
shasum
: The command to calculate or verify a SHA checksum.--ignore-missing
: This option tells shasum to continue checking checksums even if it encounters missing files. Normally, if a file specified in the checksum file is not found, shasum stops the verification process.--check
: This option instructs shasum to verify the checksums of the specified files against their corresponding SHA checksums. The checksums are typically provided in a separate file.--quiet
: This option suppresses the normal output of shasum, only displaying error messages. It makes the command less verbose.
${filename}
: This is the placeholder for the name of the file that you want to check the checksum against. It should be replaced with the actual filename.
Overall, this command is used to verify the integrity of a file by checking its SHA checksum against the provided checksum file, ignoring any missing files, and producing minimal 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.