From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 23:14:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2374106564A for ; Tue, 11 Sep 2012 23:14:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 71BD48FC0C for ; Tue, 11 Sep 2012 23:14:46 +0000 (UTC) Received: from r56.edvax.de (port-92-195-63-5.dynamic.qsc.de [92.195.63.5]) by mx02.qsc.de (Postfix) with ESMTP id 9DEDA278A6; Wed, 12 Sep 2012 01:14:44 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q8BNEhE0003436; Wed, 12 Sep 2012 01:14:44 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 12 Sep 2012 01:14:43 +0200 From: Polytropon To: Gary Kline Message-Id: <20120912011443.5df17cf2.freebsd@edvax.de> In-Reply-To: <20120911213804.GA9817@ethic.thought.org> References: <20120911213804.GA9817@ethic.thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: cksum entire dir?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 23:14:46 -0000 On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > I'm trying to checksum directories as I move them around. > ive read the man page for sum and cksum ... or maybe skimmed > them. no joy. anybody know of a utility to do this? I've > got files that are decades old... Maybe it's possible to tar the directory (without compression of course) and obtain a checksum of the tar archive? % tar cf - | cksum But I also tried cksum directly with a directory like % cksum and could obtain a checksum - so it _seems_ to work. After alteration of one file within the hierarchy a different result was printed. Tested on OS version 8.2-STABLE/i386, one year old. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...