User Tools

Site Tools


remove_duplicate_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
remove_duplicate_files [2023/06/06 13:56] – created dinoremove_duplicate_files [2024/03/12 21:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
 First install package rdfind:  First install package rdfind: 
-<code>sudo apt install rdfind<\code> +<code>sudo apt install rdfind</code> 
  
 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": 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 +<code>rdfind -dryrun true Photos </code> 
 + 
 +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: 
 + 
 +<code>rdfind -deleteduplicates true Photos </code> 
remove_duplicate_files.1686059807.txt.gz · Last modified: 2024/03/12 21:24 (external edit)