On 9/21/05, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
>
> The other thing that is disconcerting about the cp, ll, diff I do is
> that directory sizes don't necessarily stay the same. If the size
> differs at all, usually the copy is taking less space. (I don't
> remember seeing any that ended taking more.) But this occurrence is
> much, much less frequent than the link dates changing.
That's the way Unix-type directories work. They expand as new files
are added, but do not contract when files are deleted. So a directory
that has had many files deleted will still have directory structure
allocated for those files.
> Is there a way to get a reliable listing of the source files, do a byte
> for byte comparison, and report only the ones that are different?
$ man diff
$ diff -r -q dir1 dir2
Will recursively compare subdirectories, and report whether files differ.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list