给文件做个指纹

md5sum

md5sum install.log
af4164471529d7da9c31f4443240f51a install.log

校验

[root@localhost ~]# md5sum install.log >md5_install.txt

[root@localhost ~]# md5sum -c md5_install.txt
install.log: 确定

修改了一下md5文件内容之后再次校验

[root@localhost ~]# md5sum -c md5_install.txt
install.log: 失败
md5sum: 警告:1/1 生成的校验和不匹配

猜你喜欢

转载自www.cnblogs.com/luoqi302331/p/10370505.html