Files
oam/knowledge base/shasum.placeholder
2023-12-28 22:42:05 +01:00

19 lines
352 B
Plaintext

# Shasum
1. [TL;DR](#tldr)
## TL;DR
```sh
# Install the tools.
brew install 'coreutils'
# 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'
```