Last active
June 11, 2018 16:11
-
-
Save gravataLonga/9755de3791472d6055a3677178c1877e to your computer and use it in GitHub Desktop.
Fingerprint or Digest files - SHELL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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