User Tools

Site Tools


remove_duplicate_files

First install package rdfind:

sudo apt install rdfind

To get a list of duplicate files in our Photos directory, but not take any action, we can tell rdfind to perform a “dry run”:

rdfind -dryrun true Photos 

if we want to really remove copies of duplicated files, we can run the following command. This is destructive and will wipe out any duplicates the rdfind tool locates:

rdfind -deleteduplicates true Photos 
remove_duplicate_files.txt · Last modified: 2024/03/12 21:23 by 127.0.0.1