From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 01:00:17 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 01A1F1065670 for ; Wed, 12 Sep 2012 01:00:17 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id ABE278FC08 for ; Wed, 12 Sep 2012 01:00:16 +0000 (UTC) Received: by yenl7 with SMTP id l7so271291yen.13 for ; Tue, 11 Sep 2012 18:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=HL6FctXCDtvBaleq2aDR236MarNu5pIgmt6oKaT0tNo=; b=GoBlXClkEq8DrI9ujQJGDeoidkPr+q38aYpvqKoBIpyb6bIKlo/mRosdYQ/1PNs7Eo pm9aWU3fgCxsYm17RTCaB8WxHvsoSmAnsZKaDvWJJfGucQSpf3UMv0p6FsLJw+lSidh9 i5fk47hxtp67YipjpCNUabHFaidysv24+4YVOa2kFAywJP7PJMOYcm+K5jXStlnOxaQl xPf+A/AwkVLdPOyJ/7yVPkioSHNeHiNEkcd0FeJb9c5o7ca7D5DkntXAy99QEDfL0cHC 0h9c1vuzS8nhJTFVbAmT5FXYmHY9KRDUpEDPdSpa1fG8GrG/gyOdER1szA/h7/7MXJZ+ No2w== Received: by 10.236.191.233 with SMTP id g69mr17793770yhn.113.1347411609155; Tue, 11 Sep 2012 18:00:09 -0700 (PDT) Received: from [192.168.5.122] (adsl-98-87-90-108.bna.bellsouth.net. [98.87.90.108]) by mx.google.com with ESMTPS id x4sm33166181yhh.2.2012.09.11.18.00.07 (version=SSLv3 cipher=OTHER); Tue, 11 Sep 2012 18:00:08 -0700 (PDT) Message-ID: <504FDE96.50209@gmail.com> Date: Tue, 11 Sep 2012 20:00:06 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <20120912002408.GA10496@ethic.thought.org> <20120912024854.1a79d0b3.freebsd@edvax.de> In-Reply-To: <20120912024854.1a79d0b3.freebsd@edvax.de> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 01:00:17 -0000 On 9/11/2012 7:48 PM, Polytropon wrote: > > I think I tried something like your second example last night. > I think I did > > % cksum foodir/* > That lets the shell expand * to the content of foodir, making > a final command line like "cksum foodir/file1 foodir/file2" > and so on. If you omit the /* part, the directory will be > checksummed entirely. If you then remove a file or change > it, a different checksum will be printed. At least that is > my interpretation of what I've tested. I think that command checksums the *directory block*, not the same as a combined checksum of all the files, and probably not useful for verifying if all files have been copied/moved correctly to a different directory. > The Midnight Commander has a function to compare directories > which will also identify _which_ files have changed (unlike Yes, much more promising. -- Noel Jones