mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 21:56:58 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
34
tldr/rhash
Normal file
34
tldr/rhash
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rhash
|
||||
|
||||
> Calculate or check common message digests.
|
||||
> More information: <https://rhash.sourceforge.net/manpage.php>.
|
||||
|
||||
- Calculate default CRC32 digests of a file:
|
||||
|
||||
`rhash {{path/to/file}}`
|
||||
|
||||
- Recursively process a directory to generate an SFV file using SHA1:
|
||||
|
||||
`rhash --sha1 --recursive {{path/to/folder}} > {{path/to/output.sfv}}`
|
||||
|
||||
- Verify the integrity of files based on an SFV file:
|
||||
|
||||
`rhash --check {{path/to/file.sfv}}`
|
||||
|
||||
- Calculate the SHA3 digest of a text message:
|
||||
|
||||
`rhash --sha3-256 --message '{{message}}'`
|
||||
|
||||
- Calculate CRC32 digest of a file and output digest encoded in base64 using BSD format:
|
||||
|
||||
`rhash --base64 --bsd {{path/to/file}}`
|
||||
|
||||
- Use custom output template:
|
||||
|
||||
`rhash --printf '{{%p %s %{mtime} %m
|
||||
}}' {{path/to/file}}`
|
||||
Reference in New Issue
Block a user