1. 打开windows powershell
2. 选择需要计算MD5值的文件
Get-FileHash C:\Windows\notepad.exe -Algorithm MD5| Format-List
3 WSL ubuntu 校验MD5值
# cat /etc/os-release
Ubuntu 16.04.3 LTS
# touch file1 file2
# md5sum file1 file2
d41d8cd98f00b204e9800998ecf8427e file1
d41d8cd98f00b204e9800998ecf8427e file2
# md5sum file1 file2 > md5.txt
~# md5sum -c md5.txt
file1: OK
file2: OK
# echo "hello" >> file1
~# md5sum -c md5.txt
file1: FAILED
file2: OK
md5sum: WARNING: 1 computed checksum did NOT match