Should i delete core files ?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Should i delete core files ?
# 1  
Old 08-24-2019
Should i delete core files ?

Good morning, i need your help please

By searching some of the largest files i found some core files that take up much space

This is the command:
Code:
find ./ -type f -name core -exec file {} \;

Output:
Code:
./xptol/tel/tasacion/CIERR/exe/core:    ELF 64-bit MSB core file SPARCV9 Version 1, from 'batch_borrar'
./xptol/tel/tasacion/CIERR/PARCIAL/core:        ELF 64-bit MSB core file SPARCV9 Version 1, from 'batch_borrar'
./xptol/tel/tasacion/RECEP/core:        ELF 32-bit MSB core file SPARC Version 1, from 'sleep'
./xptol/shell/core:     ELF 64-bit MSB core file SPARCV9 Version 1, from 'sqlplus'

and some of then are larger

Code:
roduccion/explotacion # ls -lrth ./xptol/tel/tasacion/CIERR/exe/core 
-rw-------   1 xptol    explotacion     14G Sep 22  2017 ./xptol/tel/tasacion/CIERR/exe/core
/produccion/explotacion # 
/produccion/explotacion # ls -lrth ./xptol/tel/tasacion/CIERR/PARCIAL/core
-rw-------   1 xptol    explotacion    2.4G Sep 20  2008 ./xptol/tel/tasacion/CIERR/PARCIAL/core

I wonder if i can remove these files without affecting any application or the operating system itself?

Thanks for your help in advanced
# 2  
Old 08-24-2019
Deleting core files will not affect the current running application.
It has crashed (in the past) and generated a core dump.
Or killed intentionally to generate one by user or kernel.

Now, the one who wrote those applications, should tell you that.
Perhaps he or she (or a group, company whatever) would like to analyse those core dumps to determine the reason of crash.

Hope that helps
Regards
Peasant.

Last edited by rbatte1; 09-04-2019 at 02:12 PM..
This User Gave Thanks to Peasant For This Post:
# 3  
Old 08-24-2019
If you have a process that generates repeated core dumps, you have a problem. On production systems you want to see no core dumps.

A process that dumps core may leave a data set in an indeterminate state. Example: missing child records for a parent record. We had missing closure records for successfully (we think) closed service requests. Convincing management of the cause was interesting, but as soon as the faulty code was fixed the problem went away.

As Peasant indicated you can safely remove them. That cleans the slate. Start worrying if more appear.
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

2. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

3. UNIX for Dummies Questions & Answers

How to know where the core files come from?

Hi, I am trying to use "find / -name core -print | xargs rm -f " ,but it would delete all core files including some core files we do not want to delete. I search privious posts,someone said "To check what a core file came from - use the file command" I used man page to search file command,but... (9 Replies)
Discussion started by: lemon_06
9 Replies

4. UNIX for Dummies Questions & Answers

hp ux core files

what are core files?? Can I safely delete them??? Please, help (2 Replies)
Discussion started by: ldaliosmane
2 Replies

5. UNIX for Advanced & Expert Users

evaluating core files

Does anyone know any tools or how to really get something out of a core file. I can use strings and look for certain things like out of memory. I am trying to use adb but I can't make heads or tails from it. I guess it is my lack of know how with the adb/mdb debugger. anything would... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

6. UNIX for Dummies Questions & Answers

system log files and core files?

Solaris v5.6 What log files should be checked out as part of your sys admin daily routine? I've printed out my syslog.conf file, and looked in /var/log and found authlog, syslog, and POPlog. I know of /var/adm/messages. What others should I be looking for? I know of the "find" command. I... (8 Replies)
Discussion started by: Westy564
8 Replies

7. UNIX for Advanced & Expert Users

What can be done with core files???

please help me, what can i do with the bountiful amount of core files our systems seem to have on occassional basis?? how do I analyze it and determine why the core file was dumped by the application that dumped it. the operating systems we use are solaris, DG-UX and linux red hat systems. (5 Replies)
Discussion started by: TRUEST
5 Replies

8. UNIX for Dummies Questions & Answers

What are core files and how can I delete them when am performing system maintenance??

Help me How can I go about doing this. also, if you have any idea of other files I can delete and what I can do to improve the performance of a system thats running too slow (6 Replies)
Discussion started by: IMPORTANT
6 Replies

9. UNIX for Dummies Questions & Answers

Delete Core file in root directory

HP UX 11i Ok my server is about to run out of space, and i would like to know if there is something that i should be doing on a regular basis to maintain the machine like logs that i should clear or dmp file that i should delete... Thanks in Advance (2 Replies)
Discussion started by: bbutler3295
2 Replies

10. UNIX for Dummies Questions & Answers

core files

ok heres a question, :confused: well obviously i have here my old old motorola system V/88 in my /usr/adm folder i have a file called kernelcore which is 16mb (the computer has 16mb ram too), we believe this is the contents of our ram when the system crashed back in feb last year! Is it save... (2 Replies)
Discussion started by: Vodor
2 Replies
Login or Register to Ask a Question