Categories
Bash Scripts

Find Core.* files in Magento / WordPress / Other CMS in Linux

Find them
find / -name 'core.*[[:digit:]]' -exec du -sch {} \;
Delete them
find / -name 'core.*[[:digit:]]' | xargs rm -f
Cron
0 * * * * find / -name 'core.*[[:digit:]]' | xargs rm -f

Issue:-

Huge size of core.xxxx files