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