Cleaning core files | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Cleaning core files

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2007
ghost01 ghost01 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 12 March 2012, 10:32 AM EDT
Location: Zagreb, Croatia
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question Cleaning core files

Hello *!
Just a short question. Where on the system i can find core files. I have one SUN server (Solaris 8) and from time to time I must clean core files on it. But i am not sure where i can find those files. Thank you in advance.
Sponsored Links
    #2  
Old 01-09-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 5 July 2014, 11:14 AM EDT
Location: classification algos
Posts: 3,203
Thanks: 19
Thanked 30 Times in 27 Posts
man find

search forum please
Sponsored Links
    #3  
Old 01-11-2007
skybird666 skybird666 is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 12 January 2007, 12:26 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,


Plz use this for finding the core files

Code:
# find  / -name core

if u want find and delete also core file in one command use this:--

Code:
# find  / -name core -exec rm -r {} \;


Regard's
skybird

Last edited by Yogesh Sawant; 04-20-2009 at 04:43 AM.. Reason: added code tags
    #4  
Old 01-11-2007
Tornado's Avatar
Tornado Tornado is offline
Registered User
 
Join Date: Nov 2006
Last Activity: 2 October 2014, 6:55 PM EDT
Location: Melbourne
Posts: 261
Thanks: 1
Thanked 11 Times in 8 Posts
To avoid errors from core directories use this:
Code:
# find / -name core -type f -exec rm {} \;

Sponsored Links
    #5  
Old 04-17-2009
ldaliosmane ldaliosmane is offline
Registered User
 
Join Date: Apr 2009
Last Activity: 26 May 2010, 7:13 PM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
home directory
Sponsored Links
    #6  
Old 04-19-2009
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 25 November 2014, 5:09 PM EST
Posts: 6,396
Thanks: 287
Thanked 673 Times in 642 Posts
(Same response I gave to an earlier correspondent).
Be very very careful.
Run the "file" command on the file called core to verify that it is a core file e.g. "core file from ...". Such files can be deleted.
If you are writing an automated script, confine any search to files only and include a test of the output from "file".
On many unix systems there are files and directories called "core" which you do not want to delete!


Please do not under any circumstances execute the command suggested by "skybird666".
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cleaning the content of log files jyotipg Shell Programming and Scripting 1 11-15-2006 02:19 AM
cleaning log files rocker40 UNIX for Dummies Questions & Answers 6 10-15-2003 03:19 PM
What can be done with core files??? TRUEST UNIX for Advanced & Expert Users 5 12-06-2002 02:40 PM
Cleaning text files ferretman UNIX for Dummies Questions & Answers 5 12-20-2001 09:47 PM
core files Vodor UNIX for Dummies Questions & Answers 2 06-12-2001 05:07 AM



All times are GMT -4. The time now is 06:57 PM.