Finding duplicated files
Post date: 05-Dec-2008 19:06:53
When your collection of Music or Ebooks (or whatever) grows exponentially, it becomes hard to keep track of saving duplicate files.
This post intent to help us finding duplicated files.
Situation:
Suppose you have a folder called Documents and you want to check if there are repeated files on it.
Install the package fdupes
[> sudo apt-get install fdupes
Use it...
[> fdupes -r Documents > Duplicated.txt
The above command line will look into the folder Documents and folders inside it (that's what -r stand for), and the names of files which match as duplicated are saved in a file called Duplicated.txt
Finally open the file
[> gedit Duplicated.txt
and erase the files you won't need.
If you prefer an interactive mode, try this,
[> fdupes -r -d Documents
Enjoy.
Oscar.