使用find 命令 find /root -type f -print0 |xargs -0 md5sum >a.md5 校验的话 md5sum -c a.md5
if(0==strncmp(md5_correct,md5_check(filename),MD5_LENTH) ) { //printf("%s md5 check success!\n",filename); count_success ++; } else{ //printf("%s md5 check failed!\n",filename); /*向文件中记录md5校验失败的文件*/ write(fd_md5,wrong_msg,strlen(none_msg)); write(fd_md5,file...
linux 比较两个文件夹不同 (diff命令, md5列表) 2017-03-03 08:14 −比较文件夹diff,可以直接使用diff命令 [root@~]# diff -urNa dir1 dir2 -a Treat all files as text and compare them line-by-line, even if they do not seem to be text. -... ...