Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 20:00:06 -0500
From:      Noel <noeldude@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: cksum entire dir??
Message-ID:  <504FDE96.50209@gmail.com>
In-Reply-To: <20120912024854.1a79d0b3.freebsd@edvax.de>
References:  <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <20120912002408.GA10496@ethic.thought.org> <20120912024854.1a79d0b3.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?504FDE96.50209>