verifying files
Matt Alexander
lowbassman at gmail.com
Sat Sep 17 14:20:09 MST 2005
Errrr... if the filenames are different then "diff -r" won't work. Why
are the filenames different anyway? In any case, if you just want some
level of assurance that the data hasn't changed within the files, rename
a few files so they're the same as their counterparts. Then diff or
md5sum them.
Matt Alexander wrote:
> diff -r dir1 dir2
>
>
> Craig White wrote:
>> I'm thinking that I don't entirely trust what I 'exported' from my iPod
>> and want to check it against the music data from my Windows
>>
>> What I want to compare is the entirety of the music data - though the
>> file names and folder names are different, the data within them should
>> be entirely unchanged.
>>
>> so I thought I could md5sum a directory tree but it only works on
>> files. ;-(
>>
>> The data amount should be slightly over 3 Gb in both cases...
>>
>> [root at srv1 home]# du -s /home/music
>> 18759612 /home/music
>>
>> [root at srv1 home]# du -s /home/samba/profiles/craig/My\ Documents/My\
>> Music/iTunes/iTunes\ Music
>>
>> 18776304 /home/samba/profiles/craig/My Documents/My
>> Music/iTunes/iTunes Music
>>
>> Not the same ;-(
>>
>> probably indicates a problem
>>
>> Is there some absolute way to computer a checksum on a directory tree to
>> compare the binary contents?
>>
>> Craig
>>
>>
>>
>
>
More information about the PLUG-discuss
mailing list