System Administration Guide: Advanced Administration

ProcedureHow to Find and Delete core Files

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Change to the directory where you want to search for core files.

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

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

Example 6–14 Finding and Deleting core Files

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 {} \;