Article ID: 4555, created on Mar 24, 2008, last review on May 10, 2014

  • Applies to:
  • Sphera

Symptoms

How can I disable the creation of core files in Linux?

Resolution

In order to disable core files generation across the whole machine in operating system level, You can use machine's /etc/profile file.

 The file is specifies a core file size limit.

It should be set to "0" and redirected to /dev/null.

 You should have a line similar to the followin in the file:

# No core files by default

ulimit -S -c 0 > /dev/null 2>&1

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF