linux windows 命令查看md5

md5sum

linux

# whatis md5sum
md5sum (1)           - compute and check MD5 message digest

md5sum --help

# md5sum /etc/passwd
c0245125df18d87d71d2e7968487571c  /etc/passwd
[root@node1 ~]# md5sum /etc/passwd | md5sum -c
/etc/passwd: OK
[root@node1 ~]# md5sum /etc/passwd > md5test.txt
[root@node1 ~]# md5sum -c md5test.txt 
/etc/passwd: OK

一般如果要传输的文件非常大,或者比较重要,为求稳妥可以做一个md5校验,确保文件传输正确

windows下校验md5sum

D:\as4k\xbackup\linux_iso>certutil -hashfile CentOS-7-x86_64-DVD-1804.iso
SHA1 的 CentOS-7-x86_64-DVD-1804.iso 哈希:
3a7cb1f2041fee7c3c99c2afc7f1bf60ac671c73
CertUtil: -hashfile 命令成功完成。

official  3a7cb1f2041fee7c3c99c2afc7f1bf60ac671c73  CentOS-7-x86_64-DVD-1804.iso
local     3a7cb1f2041fee7c3c99c2afc7f1bf60ac671c73  CentOS-7-x86_64-DVD-1804.iso

猜你喜欢

转载自blog.csdn.net/xys2015/article/details/112497298