mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
19 lines
352 B
Plaintext
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'
|
|
```
|