Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active July 8, 2018 20:49
Show Gist options
  • Save ChristopherA/8aab4ecedc44993fce4024110a8a87b1 to your computer and use it in GitHub Desktop.
Save ChristopherA/8aab4ecedc44993fce4024110a8a87b1 to your computer and use it in GitHub Desktop.
Find Duplicates Here
# Move to the target folder using the cd command. Example: cd ~/Documents.
#
find . -size 20 \! -type d -exec cksum {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ‘ ‘ | uniq -d | grep -hif – /tmp/f.tmp > duplicates.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment