linux查找重复文件

 

find . -type f|xargs md5sum 2>/dev/null|sort|uniq -d -w 33
find . -type f|xargs md5sum 2>/dev/null|grep 02a42c7a845094a8904f7b3faf686b81

 

uniq
-d, --repeated
              only print duplicate lines, one for each group
-w, --check-chars=N
              compare no more than N characters in lines

 

posted @ 2018-10-11 15:44  chenzechao  阅读(281)  评论(0编辑  收藏  举报