Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


find_duplicate_files_in_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
find_duplicate_files_in_linux [2014/06/04 19:18] juckinsfind_duplicate_files_in_linux [2014/07/16 15:04] (current) juckins
Line 1: Line 1:
 +====== Find Duplicate Files in Linux ======
 +
 +
 From [[http://www.commandlinefu.com/commands/view/3555/find-duplicate-files-based-on-size-first-then-md5-hash]] From [[http://www.commandlinefu.com/commands/view/3555/find-duplicate-files-based-on-size-first-then-md5-hash]]
  
 +<code>
 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 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
 +</code>
 +
find_duplicate_files_in_linux.1401923923.txt.gz · Last modified: 2014/06/04 19:18 by juckins