cksum entire dir??
Noel
noeldude at gmail.com
Wed Sep 12 01:00:17 UTC 2012
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
More information about the freebsd-questions
mailing list