mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-13 10:18:51 +03:00
shasum: added page
This commit is contained in:
parent
2ec20d4e82
commit
377c0e142e
23
pages/linux/shasum.md
Normal file
23
pages/linux/shasum.md
Normal file
@ -0,0 +1,23 @@
|
||||
# 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`
|
23
pages/osx/shasum.md
Normal file
23
pages/osx/shasum.md
Normal file
@ -0,0 +1,23 @@
|
||||
# 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`
|
Loading…
Reference in New Issue
Block a user