bugged.be

"Think outside the [B0X]"
Icon

“Quick” compare directory contents

1. Create md5 hash for all files and both directories:

md5deep -r -l aDirectory/* > md5.txt

or for older versions:

hashdeep -c md5 -r -l aDirectory/* > md5.txt

Output between the two are different!

2. Sort both  files:


sort md5.txt > md5_sorted.txt

3. Compare both files:


diff md5_sorted1.txt md5_sorted2.txt

 

Category: Linux

Tagged: