What is a”Core file” in Linux?
A running program creates a core file when it crashes/stops abnormally due to some bug. The core file is in massive size which contains all the memory info, crash info which is used for programmers to debug the issue and find a solution and patch the bug.
Why are we interested in that core files?
Ans: This is because of core file size. As we do monitoring of systems on a daily basis and you observe your disk suddenly is full. You are sure that should not as you already have plenty of space. And you may think how come disk is full though there is no much user activity etc. So core files are one reason which will eat up our disk. We have to check for them when we see sudden disk activity.
How to find core files in Linux?
We can use find command or locate command after running updatedb command.
#find / -name core
This find command will search entire filesystem for core files. Once you find them use rm command to remove those files which you feel appropriate.
#rm -rf /path/to/your/core
How core files got its name?
A core dump file gets its name from an old memory technology using tiny magnetic cores for storage.
Latest posts by Surendra Anne (see all)
- Docker: How to copy files to/from docker container - June 30, 2020
- Anisble: ERROR! unexpected parameter type in action:
Fix - June 29, 2020 - FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018