a newer one »APIs that delight me

Remove duplicate files

Snippet

Remove duplicated files on a unix-like filesystem

Recursively compares based on size, then mdsum, then byte-wise comparison.

Install from https://github.com/adrianlopezroche/fdupes

# identify and remove
fdupes -rdN .
 
# find them
fdupes -r dir > ~/duplicates.txt