DIGEST(1) General Commands Manual DIGEST(1)

digestcalculate a message-digest fingerprint

digest [-c] [-a algorithm] [file ...]

The utility digest writes, for each file, the calculated sum, and the filename to the standard output. In check mode, digest reads each file, and compare the sum of the listed files with the real files, reporting any mismatch.

If file is a single dash (‘-’) or absent, digest reads from the standard input.

algorithm
Set the digest algorithm. The supported algorithms are: blake2b256, md5, sha1, sha256, sha512, and whirlpool.
Set the operation to check.

The default is as if the -a blake2b256 option had been specified.

The digest utility exits 0 on success, and >0 if an error occurs.

cksum(1)

The algorithms md5 and sha1 are not considered safe anymore, and should be avoided where security matters.

December 29, 2019 EltaninOS