[Linux] Commands to Get File Hash Values

Tadashi Shigeoka ·  Mon, April 15, 2013

I’ll introduce commands to get file hash values in Linux.

Linux

openssl command example

$ openssl sha1 targetfile
SHA1(targetfile)= 9b90064097ee3290b73dde4c72f1d4291c01ffdd

md5sum command example

$ md5sum -b targetfile
6f9e8d46c4e5afa1ee5a881114ee3b9e *targetfile

That’s all from the Gemba.