Unix
Compute MD5 Checksum Hash on Windows and Linux
Use the following commands to print out the MD5 hash for a file.
On Windows:
1 2 3 4 | > CertUtil -hashfile myfile.txt MD5 MD5 hash of file myfile.txt: 76383c2c0bfca944b57a63830c163ad2 CertUtil: -hashfile command completed successfully. |
On Linux/Unix:
1 2 | $ md5sum.exe myfile.txt 76383c2c0bfca944b57a63830c163ad2 *myfile.txt |
Published on System Code Geeks with permission by Fahd Shariff, partner at our SCG program. See the original article here: Compute MD5 Checksum Hash on Windows and Linux Opinions expressed by System Code Geeks contributors are their own. |
Are you sure about the “.exe” appended to the *nix version of the command? Isn’t it just
“md5sum myfile.txt”?