create checksum using CRC32
rhash -rCP --accept=[ext,ext] [directory] > [filehash-output.sfv]
# -r : recursively
# -C : create CRC32
# -P : show percentage
# --accept : extensions list to be accepted to be rhash
example : rhash -rCP --accept=".iso,.img" . > checksum.sfv
allternatif lain selain CRC32,
-M
: untuk md5-H
,--sha1
: untuk sha1--sha256
,--sha512
: untuk SHA-2 algorithm untuk 256 atau 512 bit--sha3-256
,--sha3-512
: untuk SHA-3 algorithm untuk 256 / 512 bit- atau gunakan
--list-hashes
untuk daftar algorithm yang disupport
Update Hash
hash -rP --update=[filehash-output.sfv] --accept=[ext,ext] [directory]
r
where
-r
: recursive
-P
: show percentage
--simple
: save output in simple format (per line)
--accept
: accept only some extension
example
rhash -rP --update=Movies/Asian-crc32.sfv --accept=.mkv,.avi,.mp4,.m4v Movies/Asian/
Validate hash untuk file recursively
rhash -c --ignore-missing [filehash]
where
-c
: check hash of files based on hash file generated
--ignore-missing
: ignore file missing if deleted, moved or renamed