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

 

 

posted @ 2023-07-15 21:01  小鲨鱼2018  阅读(195)  评论(0编辑  收藏  举报