Fun and games with 3TB hard drives.

Richard Shaw hobbes1069 at gmail.com
Fri Sep 30 15:33:12 UTC 2011


On Fri, Sep 30, 2011 at 10:18 AM, linux guy <linuxguy123 at gmail.com> wrote:
> Speaking of which, what is a good way to compare the files in two
> directories (recursively, of course) to ensure that they are exactly the
> same ?
>
> Something like diff for files ?

As opposed to diff for non files? :) I think you mean non text files?

Diff will operate on binary files, but it will only say if it differs
instead of outputting diff text.

Just do a recursive diff, the -q will keep it quiet on text files as
well and only say that it differs.

diff -qr <dir1> <dir2>

If there's any output then somethings not the same.

Richard


More information about the users mailing list