Tool to compare directories

Patrick O'Callaghan pocallaghan at gmail.com
Mon Jan 28 15:34:54 UTC 2013


On Mon, 2013-01-28 at 15:32 +0100, Suvayu Ali wrote:
> On Mon, Jan 28, 2013 at 06:16:16AM -0600, Bruno Wolff III wrote:
> > On Mon, Jan 28, 2013 at 11:49:29 +0000,
> >   Paul Smith <phhs80 at gmail.com> wrote:
> > >Dear All,
> > >
> > >Could you please advise me on a tool to compare two directories? That
> > >is a tool able to identify the files of the first directory that are
> > >missing in the second one?
> > 
> > You can use diff -r to recursively compare directories.
> 
> I use this instead:
> 
>   $ rsync -rvnc --delete <olddir> <newdir>

AFAIK --delete flags files from the target which are not present in the
source, which is the reverse of what the OP is asking for, so maybe the
two directories should be inverted.

poc



More information about the users mailing list