Sometimes (rather always), duplicate files eat up space on hardrive. If you want to compute the total space wasted by
such duplicate files this utility script may come handy. fdupes
is a nice utility that finds the duplicate files in the
given directories. This script consumes the fdupes output and calculates the space wasted.
These steps assume *nix flavor OS (OS X/Linux) but this might work on Windows+Cygwin as well
- Install fdupes on your machine (verify by doing
fdupes --version
on Terminal) - Install groovy (verify by doing
groovy --version
on Terminal) cd
into dir where you want to install dupe_size:- either
git clone git://gist.github.com/3488741.git
- or download and extract zip from here
- (optional) rename the cloned/extracted dir to a more friendly name
- either
cd
into the directory that you just cloned/extracted/renamed- run
./dupes_size.sh "dir1" "dir2" ... "dirN"
(script may take some time depending on the size of input directories, have some patience)
Warning: don't try to run the command from any directory than the one in which you installed it. It assumes groovy script in the directory from where the command is issued.
With
dupes_size
I found out:I can see I am wasting 1 GB of space in just 6,000 songs.
All I needed to do was
fudpes -r -d .
in my~/Music
to clean it up