[[email protected] index]# ls index(13)(10).html index(13)(7).html index(13)(9).html index(13)(6).html index(13)(8).html [[email protected] index]# md5sum *.html > html.md5 [[email protected] index]# tail html.md5 bd34aed02df40946c5eb1e4ac298bea2 index(13)(10).html 1ac7667f0041fb3f6ec0ad0b93f0d931 index(13)(6).html 34d351ce2480038558e1b187a327861a index(13)(7).html 1e5b310361809a527d10ed0441539a73 index(13)(8).html 98e7303d73e81784efc0470a754e4d3f index(13)(9).html
查看文件是不是被改变:
[[email protected] index]# md5sum -c html.md5 index(13)(10).html: OK index(13)(6).html: OK index(13)(7).html: OK index(13)(8).html: OK index(13)(9).html: OK
改变一个文件:
[[email protected] index]# echo k >> index\(13\)\(10\).html [[email protected] index]# md5sum -c html.md5 index(13)(10).html: FAILED index(13)(6).html: OK index(13)(7).html: OK index(13)(8).html: OK index(13)(9).html: OK md5sum: WARNING: 1 of 5 computed checksums did NOT match
时间: 2024-11-03 22:19:25