Find duplicate files on linux server

find -not -empty -type f -printf “%s\n” | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate


OR 


fdupes -r ./folder > duplicates_list.txt



Comments

Popular posts from this blog

Using Debian on linksys NAS-200

Малко за мъката по светът.