Question: Can I Delete Core Files in Linux?
Contents

core files are written for post mortem of crashed processes, you must find out what is happening (a segmentation fault or other crash might signal a serious security vulnerability!). As the file is written after the program crashed, they can safely be removed at any time.

Can core files be deleted?

If the type is kernel, all kernel core files and kernel core dumps will be deleted. If the type is application, all application core files will be deleted. If the type is all, all core files will be deleted.

How do I delete a core dump file in Linux?

How can I delete all my core files cleanly?

  1. Use locate to find all the files starting with “core.”
  2. Feed that list into file.
  3. Make a list out of everything that file says is a core file. …
  4. Feed that to sudo xargs rm.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest