From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 02:15:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F39791065670 for ; Wed, 12 Sep 2012 02:15:52 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B0E108FC0C for ; Wed, 12 Sep 2012 02:15:52 +0000 (UTC) Received: by obbun3 with SMTP id un3so2364447obb.13 for ; Tue, 11 Sep 2012 19:15:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=E9MV/1qsP7DSpNB4TxoqnFYXBWBWF4QiShDtVSytx1w=; b=Ay4f9jXTwnbe5IoZm6bdbGwu4jYnAXFzwU7LxBc3d2dZArtWPab3ou9qpdS21jHJ46 lCqOqYtAaDIczm6ojVmdJLuhhziVD4cjymIZJQO1qoiIgDKtUEI2egLyq0mSOeLmnZvv WecvYdDeg/3rTkx86mBsdqP68VVhoT2dgXmH7m9GFSfyXc5OYQeKzuagUSFaGOuRdbRD m5ETJCB7jjqaovqDUwnLyGym4b5Qk5kbioEVZwvg0hEOY+jCd3wTAfynIIrtlu6+dD+U DIkaJtcmY/jRVBdp2tFrHBOu0ViIStgx/KNSQd+SvNANgyS+3n3JOPG6QYjwNeKEDa4/ rW8w== MIME-Version: 1.0 Received: by 10.60.169.75 with SMTP id ac11mr20547831oec.12.1347416146022; Tue, 11 Sep 2012 19:15:46 -0700 (PDT) Received: by 10.60.147.138 with HTTP; Tue, 11 Sep 2012 19:15:45 -0700 (PDT) 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> Date: Tue, 11 Sep 2012 22:15:45 -0400 Message-ID: From: Paul Kraus To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkK2/BWtIyV1HxRKV4VLboSOmomb53UMOtfuP3shjAc5Yps8L+V1vnY9POFLh7HV+sbuBpr Subject: Re: cksum entire dir?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 02:15:53 -0000 On Tue, Sep 11, 2012 at 9:18 PM, 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