Club MacMost Exclusive: Terminal Command to Find Duplicate Files

Here's the command I show in the video. You probably want to adjust the size (2M) and remember to start in the directory where you want the search to take place. Your Home folder or Documents folder is a good place. Or, maybe at the top level of an external archive drive. <blockquote><em><strong>find . -type f -size +2M -exec cksum {} ; | tee /tmp/tempfilelist.tmp | cut -f 1,2 -d ' ' | sort | uniq -d | grep -hif - /tmp/tempfilelist.tmp | sort -nrk2 | awk -F  '$1!=x&amp;&amp;x{print ""}{x=$1}1'</strong></em></blockquote>

Note: This is Club MacMost exclusive content. To view this video click the thumbnail below to go to the post as Patreon.com. Once there you will be able to view the video as long as you are logged into your Patreon account and a current supporter of MacMost at the "Club MacMost" or higher level.