linux 搜尋重複檔案指令

搜尋重複檔案

以MD5 切細值 (hash) :

$ find . -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 24

以檔案大小:

$ find . -type f -printf "%p - %s\n" | sort -nr -k3 | uniq -D -f1

資料來源:如何在 Linux 底下找到想找的東西?

留言

熱門文章