diff command is great!
However, I have to speak against the md5 command, as it is crucial to understand that MD5 is not considered collision-resistant, meaning it's possible, albeit with a low probability, for different inputs to produce the same hash value, which is called a collision.
If you really have to generate a hash out of the file for some purpose, considering lowering the collision by using sha256 or better algorythm.