System Administration Guide, Volume 2

How to Find and Delete core Files

  1. Become superuser.

  2. Change the directory to where you want to start the search.

  3. Find and remove any core files in this directory and its subdirectories.


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

Example--Finding and Deleting core Files

The following example shows how to find and remove core files from the user account belonging to jones using the find command.


# cd /home/jones
# find . -name core -exec rm {} \;