linux md5sum 常用用法

1.递归计算当前目录所有文件的MD5值并保存到tmp.txt中

find . -type f -exec md5sum {} \;|tee tmp.txt

2. 使用-c 选项对文件MD5进行校验

md5sum -c tmp.txt

 

posted @ 2021-09-24 10:06  声声慢43  阅读(199)  评论(0编辑  收藏  举报