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?
#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)
- Online training on Linux Bash shell scripting - February 8, 2018
- 15 iostat command examples in Linux/Unix - December 4, 2017
- How to Installing and Configuring Firewalld on Linux - November 29, 2017
- 4 sleep command examples in Linux/Unix - November 2, 2017
- 5 SSH alias examples in Linux - October 16, 2017