![Forrest logo](/images/logo.png)
rhash:tldr:f7d9b
The command "rhash --check ${filename-sfv}" is used to verify the integrity of files listed in an SFV (Simple File Verification) file.
The "rhash" command is a utility that calculates and verifies hash sums (checksums) of files. It supports various hash functions like MD5, SHA-1, SHA-256, etc.
The "--check" option is used to perform a verification of hash sums. When this option is used, rhash will read the SFV file indicated by ${filename-sfv} and compare the calculated hash sums of the listed files with the ones recorded in the SFV file.
An SFV file is a plain text file containing a list of file names with their corresponding hash sums. It is often used to verify the integrity of downloaded files. The hash sums act like unique fingerprints of the files, and if the calculated hash sums of the listed files match the ones in the SFV file, it indicates that the files haven't been tampered with or corrupted during the download process.
So, the command "rhash --check ${filename-sfv}" will use the rhash utility to check and compare the hash sums of files listed in the SFV file specified by ${filename-sfv} for integrity verification.