2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-05 12:00:16 +00:00
cheat.sheets/sheets/rhash

14 lines
403 B
Plaintext
Raw Normal View History

2018-12-06 23:30:12 +00:00
# utility for computing hash sums https://sf.net/p/rhash/
# compute sha256 for a file and store checksum in a file:
rhash --sha256 file.txt > file.sha256
# verify the file(s):
rhash -c file.sha256
# Generate a SHA256 hash file for all files in a directory tree:
rhash -r --sha256 directory/ > directory.sha256
# Verify all .sha256 files in a directory tree:
rhash -cr --crc-accept=sha256 directory/