sha1sum Command Examples

Calculate SHA1 cryptographic checksums. More information: https://www.gnu.org/software/coreutils/sha1sum.

sha1sum {{path/to/file1 path/to/file2 ...}}

sha1sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha1}}

{{command}} | sha1sum

sha1sum --check {{path/to/file.sha1}}

sha1sum --check --quiet {{path/to/file.sha1}}

sha1sum --ignore-missing --check --quiet {{path/to/file.sha1}}

echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum --check