How to remove all core files in Linux / Unix Systems

A while ago I posted an article regarding how to stop core files in cPanel servers to be generated at here. Well in order to complete that tutorial assuming these files are generated on your disk and are using your free space, I’m going to show you how to find all core files and remove them at once!

First of all to complete this you require root permission!  login to your box and run following command :

find /home -type f -regex '.*/core\.[0-9].*' -exec rm -f {} \;

 

You may need to wait for a while if you have a lot of accounts and websites on your server! well that’s it! you’ve got ride of these files!

you should remember these files generate due to script fails! its best for you to look for the issue that caused this files to be generated before attempting to remove them.

remove all core files in linux

Incoming search terms:

  • remove all vgcore dumps linux
  • how to remove core files in solaris using find
  • how to remove CentrifyDA core aix
  • how to delete core files in linux
  • how to delete core file in AIX
  • find all core files and remove in linux
  • deletion of core file in aix
  • deleting core files using unix bat file
  • delete core weblogic command unix
  • what is core file in linux and how to delate

2 comments

  1. It’s really a cool and useful piece of info.
    I am glad that you simply shared this helpful info
    with us. Please stay us up to date like this. Thanks for sharing.

Leave a Reply