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.

Fahd Shariff

Fahd is a software engineer working in the financial services industry. He is passionate about technology and specializes in Java application development in distributed environments.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Michael Rabinovitz
Michael Rabinovitz
4 years ago

Are you sure about the “.exe” appended to the *nix version of the command? Isn’t it just
“md5sum myfile.txt”?

Back to top button