• sacrilege-600x337

Quickly check if Magento core files are modified

Repost of original article by

Often times clients that are already running Magento are not aware that their core Magento files have been modified.

Desecrating Magento core files is punishable by death. So here is a little tip on how to quickly scan the core and see if someone needs to be hanged publicly or not:

diff -qrbB default_sacred_core_folder clients_core_folder

To explain the options lets take a look at man pages:

-q, –brief
report only when files differ

-r, –recursive
recursively compare any subdirectories found

-b, –ignore-space-change
ignore changes in the amount of white space

-B, –ignore-blank-lines
ignore changes whose lines are all blank

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>