Change to the directory where you want to search for core files.
Find and remove any core files in this directory and its subdirectories.
# find . -name core -exec rm {} \; |
The following example shows how to find and remove core files from the jones user account by using the find command.
# cd /home/jones# find . -name core -exec rm {} \; |