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

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What are core files and how can I delete them when am performing system maintenance??
# 1  
Old 04-03-2002
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
# 2  
Old 04-03-2002

After looking at you other posts, it is clear that you are inexperienced with unix and it appears that this may be homework, but it is a simple question so I will answer.

Use the find command, do a "man find" and it will show you quite a bit about how to format the command. There are some examples at the bottom of the listing.

Also, you can go to a good UNIX tutorial website or go to www.itrc.hp.com and use the search option to browse the MAN pages. Although this is for HPUX, the find command is generic for the most part.

Have fun learning UNIX!

# 3  
Old 04-03-2002
Definitely homework - I've seen this exact question before!

A tip - this site isn't for homework questions - and you won't get too much help if people suspect that's the nature of your post.

However - where this site is useful is the searching functions. There's a wealth of previously asked questions and associated discussions (even on this specific topic) - which will most likely answer your questions.

Theres nothing wrong with coming here to bounce ideas of ask specific questions releated to stuff you are learing. But you'll have to make an effort to understand if first - then you'll find you will get a much warmer response.

Friendly advice for all those that do sumit their homework questions here! Smilie
# 4  
Old 04-04-2002
Just for the record, I am that same guy called IMPORTANT

now, I never post no homework questions because I am learning unix myself. I am not going to school or whatever it is most of you did to know unix.

I dont and will never understand why people just cant give answers. If you dont know it or you dont want to reply, it will be highly appreciated if you dont reply at all.

me, when I see someone ask a question I know the answer to, there's nothing stopping me from answering the questions regardless.

There's nothing better than an answer from someone experienced in unix who knows what and what not to do with specific commands. and no, the man pages is definitely NOT a good place to refer anybody to. the man pages should only be used for definitions of command.

I learn from seeing examples given by experts or should I say experienced administrators. the man pages can never, and I mean NEVER compare to examples given by a unix administrator. They know what to do. they do it on a constant basis. and I will be really suprised if someone has the nerve to actually disagree that man pages are the best place to learn commands

this may sound disrespectful to most if not all you reading this, but this is the truth you need to take notice of.

and by the way, a true thanks to all of you who have actually helped me and answered my past questions. I really appreciate your help
# 5  
Old 04-04-2002
I totally agree with TRUEST. Lot of guys here are learning UNIX. If people think that the question is 'homework' , then PLEASE DO NOT REPLY to the question. And, how can you come to a conclusion that it is a HOMEWORK question?

# 6  
Old 04-04-2002
Things that are homework are usually easy to spot....they typically don't have any real life application. Often the same questions are asked repeatedly - in almost the same wording by different users.

There has been much discussion in the forum about 'homework" and I beleive that the rules state that there are to be no homework questions asked.

That is not to say that if you have made a decent attempt at the answer - then it is'nt appropriate - that is the ideal time to use the forum. It's just when people blatently ask questions without any effort at a discovery being apparent - that people will not be likely to help.

I'd also wager that most users in this forum didn't learn unix at school or college at all. I'd suggest most are self taugh - or from a book (like me).

# 7  
Old 04-04-2002
I am self taught in Unix as well (as is painfully obvious in some of my assumptions past (and future)). However, I know for a fact in my experience that trying to learn every possible solution to every problem is not possible. You have to understand the system first, then create or figure out your own solutions. Yes, people get stumped sometimes. It's OK to ask for help. But no one will hold your hand for everything.

And if I do honestly think a question is obvious homework (and usually other believe the same) I do not hesitate to close the thread right away. This question may not be homework, but it's such a pointed and narrow question for such a broad subject that many people may take it to be homework.

Anyways, here's a website on old core memory, before the nifty little DIMMs / SIMMs used more recently:
Most systems now use moderm memory, but you'll still hear terms that are a throwback to this memory, like "core dump" or "in-core image".
A core file, or core dump, is basically an abnormally aborting process dumping all of it's physical memory to disk. It's useful for debugging. They are typically files called "core". If you use the command "file core", many systems will tell you what process created the file.

Getting rid of unnecessary core files is like taking out the trash at home - if it was never done, your kitchen would eventually fill up.
It may not slow your system down very much, like rotting fruit on your kitchen counter doesn't affect how long you have to bake your cookies, but then again, who wants rotting fruit on their counter?

There lots of maintenance you can be doing - cleaning up core files is one of them. There's also hardware maintenance, software upgrades, etc...

As for finding core files, run as root:
"find / -type f -name core > /tmp/core-list 2>/dev/null"
Next, examine each file to make sure it's not needed by a developer or system engineer, and delete the ones that are just taking up space.

And as for not liking the man pages, after a while, you'll probably start hearing a lot of people telling you to RTFM (Read The F***ing Manual). Man pages are a wonderful resource, and no Unix admin or guru can do without them. Learn how to effectively search the man pages (man -k keyword), and search google for answers, since many people have probably had similar questions in the past. Some systems also use the "info" program, which is like a newfangled man page system. It's a little more interactive, and almost navigatable like html, but frankly, I'll take a man page any day.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

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: find ./ -type f -name core -exec file {} \; Output: ./xptol/tel/tasacion/CIERR/exe/core: ELF 64-bit MSB core file SPARCV9 Version 1, from... (2 Replies)
Discussion started by: alexcol
2 Replies

2. Solaris

Solaris 10 system boots into Maintenance mode

I have seen similar threads on this issue, but I have not seen a fix. Basically I am getting a lot of rcp bind errors. Below find the output of "svcs -xv". not sure where to begin: # svcs -xv svc:/network/rpc/bind:default (RPC bindings) State: maintenance since Fri May 25 14:13:18 2012... (14 Replies)
Discussion started by: brownwrap
14 Replies

3. Solaris

System booting to maintenance mode

Hi Guys, I have a sunblade 1500. I booted the system and it booted to maintenance mode. How can I fix this? Thanks lots (8 Replies)
Discussion started by: cjashu
8 Replies

4. UNIX for Advanced & Expert Users

slow performing system

Friends Greetings. I have a RedHat 5.7 64bit virtual server on VMware ESXi 4.1. This server and other Redhat Servers are running very slow. I did some stats collection on ESXi and looks like Linux is holding the disk IO. I am not sure what is causing this behavior. On Linux I checked the CPU... (4 Replies)
Discussion started by: sdewal
4 Replies

5. UNIX for Dummies Questions & Answers

System maintenance weekly job and welcome message

Since a few weeks I am playing with debian and now I have 2 questions. The first one: I want to create weekly a file to all user directories. I know that you have a cronjob to schedule it weekly. In this cronjob I have written the following line: df >> /home/%users/diskspace.txt I've... (1 Reply)
Discussion started by: iceqube
1 Replies

6. Shell Programming and Scripting

how to delete files at booting of system (system startup)

hi all I have a problem how to write a shell script which delete files/folder form directory whenever system boot and copy last updated folder/file in the specified directory.pse help me ASAP. i write a script which copy files in directory.I want when system boot up using script it check whether... (1 Reply)
Discussion started by: shubhig15
1 Replies

7. 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

8. UNIX for Advanced & Expert Users

System Maintenance

How do I go about doing this??? Is there something to it other than cleaning up useless files?? if you have knowledge concerning this, please give your suggestions also, is it possible or safe to compress an entire filesystem. how do you go about doing this??? any information is appreciated (7 Replies)
Discussion started by: IMPORTANT
7 Replies

9. UNIX for Advanced & Expert Users

Analyzing System Core Files?

can some tell me how to do this. I mean, i tried finding this out on my own but when I checked the man pages, i got a truckload of commands available pertaining to this task which in turn got me confused. so my question is, if there is a simple straight forward(not necessarily easy) way to... (2 Replies)
Discussion started by: TRUEST
2 Replies

10. UNIX for Dummies Questions & Answers

Quiet System for Maintenance

I have backups that run in a cron @ midnight. Does the backup utility make sure that the system is quiet --(no users are logged on) or do I need to add some stuff to make sure nobody is accessing those file while they are being backed up. (3 Replies)
Discussion started by: michieka
3 Replies
Login or Register to Ask a Question