linux 中 md5sum -c选项
001、
[root@PC1 test01]# ls [root@PC1 test01]# seq 5 > a.txt; seq 3 > b.txt ## 生成测试数据 [root@PC1 test01]# ls a.txt b.txt [root@PC1 test01]# md5sum b.txt > md5.txt ## 生成b.txt的MD5值 [root@PC1 test01]# ls a.txt b.txt md5.txt [root@PC1 test01]# md5sum -c md5.txt ## 检验md5.txt b.txt: OK
.