Finding and Removing core files

Here's a simple one liner to help find and remove core files from a given system.

# find . -type f -name core -exec rm {} \;

If you want to perform this task across the entire system, then also use the -local option (won't traverse down NFS mountpoints)

# find / -type f -name core -local -exec rm {} \;