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
原文地址:https://www.cnblogs.com/chenzechao/p/9772840.html