Files
oam/knowledge base/shasum.md
2024-05-24 13:51:57 +02:00

706 B

Shasum

  1. TL;DR

TL;DR

Installation and configuration
brew install 'coreutils'
Usage
# Print the checksum of given files.
sha512sum 'path/to/file'
sha1sum 'path/to/file.1' 'path/to/file.N'

# Check files given their checksum and name in one or more files.
sha256sum -c 'expected.sha256'
sha512sum -cw 'expected.1.sha512' 'expected.N.sha512'