Compare lots of files

Matthew Miller mattdm at mattdm.org
Fri Jul 14 16:52:00 UTC 2006


On Fri, Jul 14, 2006 at 10:40:02AM -0600, Frank Cox wrote:
> Is there a command that I can use to do this in one shot?  I have been
> playing around with diff and the best I can do is to get it to give me a
> list of "common subdirectories", but it's not comparing the actual files.
> It took all night to copy the files so I'd think a real compare would take
> twice that long, and everything that I try with diff seems to run in a few
> seconds.

Try rsync -avcn. (The "n" will tell it to not actually do anything, just
print what it would have done.) And the -c makes it do a checksum of every
file.

-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list