cksum entire dir??

Paul Kraus paul at
Wed Sep 12 02:15:53 UTC 2012

On Tue, Sep 11, 2012 at 9:18 PM,  <kpneal at> wrote:

> It's a real shame Unix doesn't have a really good tool for comparing
> two directory trees. You can use 'diff -r' (even on binaries), but that
> fails if you have devices, named pipes, or named sockets in the
> filesystem. And diff or cksum don't tell you if symlinks are different.
> Plus you may care about file ownership, and that's where the stat
> command comes in handy.

Solaris and a least a few versions of Linux have a "dircmp" command
that is in reality a wrapper for diff that handles special files. The
problem with it is that it tends to be slow (I had to validate
millions of files).

Paul Kraus
-> Principal Consultant, Business Information Technology Systems
-> Deputy Technical Director, LoneStarCon 3 (
-> Sound Coordinator, Schenectady Light Opera Company ( )
-> Technical Advisor, Troy Civic Theatre Company
-> Technical Advisor, RPI Players

More information about the freebsd-questions mailing list