An integrity check asks whether a file still matches a reference. Check contents and metadata separately. Contents are the bytes inside the file. Metadata includes details such as its access permissions.
System Auditing · Lesson 3
File Integrity
Learn to compare a file's contents and permissions using a hash and metadata.