md5sum for directories?

Alexander Skwar listen at alexander.skwar.name
Wed Aug 16 06:27:21 UTC 2006


· Gérard BIGOT <gerard.bigot at gmail.com>:

> On 8/15/06, pkaplan1 at comcast.net <pkaplan1 at comcast.net> wrote:
>> Is there something similar to md5sum for verifying that two copies of a directory are equivalent?
> 
> Perhaps with :
> 
> tar cvf  - dir_1| md5sum
> tar cvf  - dir_2| md5sum
> 
> and comparing the two strings?

This will also take the ownership, permissions and times into 
consideration. With "md5sum $file", that's not done.

Alexander Skwar
-- 
Der Apfel fällt nicht weit vom Pferd.






More information about the ubuntu-users mailing list