Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 14:47:04 -0700
From:      Gary Kline <kline@thought.org>
To:        Waitman Gobble <gobble.wa@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, Matthew Seaman <matthew@freebsd.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: cksum entire dir??
Message-ID:  <20120912214704.GB19460@ethic.thought.org>
In-Reply-To: <CAFuo_fwhVO0hATPZLAqyn3hM5CNtdWyxMtoF2N8hmiLFKQg6cw@mail.gmail.com>
References:  <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <50502C51.5020601@FreeBSD.org> <20120912174625.GA17551@ethic.thought.org> <CAFuo_fwhVO0hATPZLAqyn3hM5CNtdWyxMtoF2N8hmiLFKQg6cw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote:
> On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline <kline@thought.org> wrote:
> 
> > On Wed, Sep 12, 2012 at 07:31:45AM +0100, Matthew Seaman wrote:
> > > On 12/09/2012 00:14, Polytropon wrote:
> > > >     % cksum <directory>
> > > >
> > > > and could obtain a checksum - so it _seems_ to work.
> > > > After alteration of one file within the hierarchy a
> > > > different result was printed.
> > >
> > > That will give you a checksum on the directory inode -- file names and
> > > associated metadata only, not file content.  In theory you could edit a
> > > file without modifying any of the timestamps, and that wouldn't result
> > > in any change to the directory checksum.  Also, modifying things a few
> > > layers down the filesystem hierarchy won't have any effect either.
> > >
> > > Generally I find the best test for differences between old and new
> > > copies of a filesystem is 'rsync -avx -n ...'
> > >
> > > Also, sum and cksum have way too small a key size for this to be
> > > reliable, since you can't tell a true result from a hash collision.  Use
> > > md5 or sha1 or sha256 for best results.
> > >
> >
> >         So this sha256 is *real*??  I have no md5 on my "fedora"
> >         that is on my desktop and m having trouble getting used to.
> >         but the gentleman who recommened cpio was right on the money.
> >
> 
> 
> 
> are you sure it's not 'md5sum' ? ... that seems to be on all my GNU/Linux
> machines.
> 
> Waitman Gobble
> San Jose California USA
> 

	yup, you be right.  altho we have no md5 [[does FBSD?]], fedora 
	does have md5sum.  makes me wonder why this flavor didnt do at least a
	symlink.   oh well.    

	thankee much.

	[[ 
	    axeing to save BW
	]]


> 
> > > Dr Matthew J Seaman MA, D.Phil.
> > > PGP: http://www.infracaninophile.co.uk/pgpkey
> > >
> > >
> >
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > freebsd-questions-unsubscribe@freebsd.org"
> >



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