*sum: update pages to make them consistent (#10136)
* *sum: update pages to make them consistent * md5sum: fix typo, shasum: change 'the' to 'a' for consistency
This commit is contained in:
@@ -1,32 +1,36 @@
|
||||
# shasum
|
||||
|
||||
> Calculate or check cryptographic SHA checksums.
|
||||
> Calculate SHA cryptographic checksums.
|
||||
> More information: <https://manned.org/shasum>.
|
||||
|
||||
- Calculate the SHA1 checksum for a file:
|
||||
- Calculate the SHA1 checksum for one or more files:
|
||||
|
||||
`shasum {{path/to/file}}`
|
||||
`shasum {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Calculate the SHA256 checksum for a file:
|
||||
- Calculate the SHA256 checksum for one or more files:
|
||||
|
||||
`shasum --algorithm 256 {{path/to/file}}`
|
||||
`shasum --algorithm 256 {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Calculate the SHA512 checksum for multiple files:
|
||||
- Calculate the SHA512 checksum for one or more files:
|
||||
|
||||
`shasum --algorithm 512 {{path/to/file1}} {{path/to/file2}}`
|
||||
`shasum --algorithm 512 {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Calculate a SHA1 checksum from `stdin`:
|
||||
|
||||
`{{some_command}} | shasum`
|
||||
|
||||
- Calculate and save the list of SHA256 checksums to a file:
|
||||
|
||||
`shasum --algorithm 256 {{path/to/file1}} {{path/to/file2}} > {{path/to/file.sha256}}`
|
||||
`shasum --algorithm 256 {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha256}}`
|
||||
|
||||
- Check a file with a list of sums against the directory's files:
|
||||
- Read a file of SHA1 sums and filenames and verify all files have matching checksums:
|
||||
|
||||
`shasum --check {{path/to/file}}`
|
||||
|
||||
- Check a list of sums and only show a message for files for which verification fails:
|
||||
- Only show a message for missing files or when verification fails:
|
||||
|
||||
`shasum --check --quiet {{path/to/file}}`
|
||||
|
||||
- Calculate the SHA1 checksum from `stdin`:
|
||||
- Only show a message when verification fails, ignoring missing files:
|
||||
|
||||
`{{some_command}} | shasum`
|
||||
`shasum --ignore-missing --check --quiet {{path/to/file}}`
|
||||
|
Reference in New Issue
Block a user