Skip to content

Instantly share code, notes, and snippets.

@gravataLonga
Last active June 11, 2018 16:11
Show Gist options
  • Save gravataLonga/9755de3791472d6055a3677178c1877e to your computer and use it in GitHub Desktop.
Save gravataLonga/9755de3791472d6055a3677178c1877e to your computer and use it in GitHub Desktop.
Fingerprint or Digest files - SHELL
# Create first
find -type f -name "*.php" -exec md5sum "{}" + > checklist.chk
# Save on remote server or your computer, it best if your create a hook on git or mercurial to create this on the fly.
# Later on or in cron you must check if all is good.
# Can you even do remove write permission,
# chmod a-w checklist.chk
# This will give you the following pattern:
# file: OK
md5sum -c checklist.chk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment