[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need utility to search for duplicate files



> My desktop system is used by 3 users, each having a few thousand files
> in their home directory. Since we primarily have the same interests,
> there are a LOT of duplicates to be found. Earlier I found an mpeg movie
> that all three of us had that was 120 MB. That's 240 MB of wasted space.
> Unfortunately, the files won't always have the same filename. Does
> anyone know of a utility that can go through and search for files with
> the same size and/or date and delete them or notify me?
> 
> -Alex

If you are using Woody, do apt-get install fdupes. Or go to freshmeat.net and 
do a search for fdupes. Does exactly what you are talking about
FDUPES(1)                                               FDUPES(1)

NAME
       fdupes  - finds duplicate files in a given set of directo­
       ries

SYNOPSIS
       fdupes [ options ] DIRECTORY ...

DESCRIPTION
       Searches the given path for duplicate  files.  Such  files are found by 
       comparing file sizes and MD5 signatures, fol­lowed by a byte-by-byte 
       comparison.

OPTIONS
       -r --recurse
              include files residing in subdirectories

       -s --symlinks
              follow symlinked directories

       -H --hardlinks
              normally, when two or more files point to the  same
              disk  area they are treated as non-duplicates; this
              option will change this behavior

       -n --noempty
              exclude zero-length files from consideration

       -f --omitfirst
              omit the first file in each set of matches

       -1 --sameline
              list each set of matches on a single line

       -S --size
              show size of duplicate files

       -q --quiet
              hide progress indicator

       -d --delete
              prompt user for files  to  preserve,  deleting  all
              others (see CAVEATS below)

Andrew

"I do not agree with what you say,
but I will defend to the death your right to say it." 
Francois Marie Arouet Voltaire (1694-1778)


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: