1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 04:17:55 +01:00
tldr/pages/osx/shasum.md
2017-10-04 19:29:42 +02:00

463 B

shasum

Calculate or check cryptographic SHA checksums.

  • Calculate the SHA1 checksum for a file:

shasum {{filename}}

  • Calculate the SHA256 checksum for a file:

shasum -a 256 {{filename}}

  • Calculate the SHA512 checksum for multiple files:

shasum -a 512 {{filename1}} {{filename2}}

  • Check a file with a list of sums against the directorys files:

shasum -c {{list_file}}

  • Calculate the SHA1 checksum from stdin:

{{somecommand}} | shasum