Date: Tue, 11 Sep 2012 22:15:45 -0400 From: Paul Kraus <paul@kraus-haus.org> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: cksum entire dir?? Message-ID: <CALhcXPBz7RhS%2B4g4AJ%2BVDoFyozrzoAP0JEPEGD-T=ZOSS=4YaA@mail.gmail.com> In-Reply-To: <20120912011813.GA2305@neutralgood.org> References: <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <20120912002408.GA10496@ethic.thought.org> <20120912011813.GA2305@neutralgood.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 11, 2012 at 9:18 PM, <kpneal@pobox.com> 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). -- {--------1---------2---------3---------4---------5---------6---------7---------} Paul Kraus -> Principal Consultant, Business Information Technology Systems -> Deputy Technical Director, LoneStarCon 3 (http://lonestarcon3.org/) -> Sound Coordinator, Schenectady Light Opera Company ( http://www.sloctheater.org/ ) -> Technical Advisor, Troy Civic Theatre Company -> Technical Advisor, RPI Players
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALhcXPBz7RhS%2B4g4AJ%2BVDoFyozrzoAP0JEPEGD-T=ZOSS=4YaA>