How to find and delete core files on server

To find and delete core files on server run the command:

find . -name core.[0-9]* -exec rm -vf {} \;

If you just want to find core files and not delete them, then you can use the command below.

find . -name core.[0-9]*

Done.