Query the MD5 value of a file on Mac and win

Original link:https://blog.kelu.org/tech/2023/05/07/md5-win-and-mac.html

Windows

Use the native command CertUtil in CMD to verify the md5 value:

 CertUtil -hashfile 文件路径MD5

For example:

 CertUtil -hashfile C: \U sers \u sername \D ownloads \m yfile.txt MD5

Mac

 md5 文件路径

For example:

 md5 "/Users/username/Downloads/My Folder/myfile.txt"

This article is transferred from:https://blog.kelu.org/tech/2023/05/07/md5-win-and-mac.html
This site is only for collection, and the copyright belongs to the original author.