LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2010, 10:17 AM   #1
shaktiman
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Unhappy How to find the core files in linux with out using "Find" command?


Can any one help me out.I have searched many forums but did not find a way to FIND A CORE FILE WITH OUT USING FIND COMMAND.
 
Old 07-30-2010, 10:21 AM   #2
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Sorry, what is a core file? If you mean important system files, there is various ways.

slocate and locate, two database applications which create a db of your files and allow you to search them quickly.

you can use
Code:
whereis
and name the application your trying to find,

or man pages -
Code:
man 'name of application
which normally will list what files an application works with.

If this isn't what your looking for, you'll need to define core files better.
 
Old 07-30-2010, 10:29 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
you can use locate commmad.

Code:
locate filename
use for more info
Code:
man locate
 
1 members found this post helpful.
Old 07-30-2010, 10:32 AM   #4
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Also please dont post the same thread multiple times, its rude.

They will be read and people will reply if they know.
 
Old 07-30-2010, 10:39 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can explain what you mean by

Quote:
A CORE FILE
 
Old 07-30-2010, 10:48 AM   #6
ordinary
Member
 
Registered: Apr 2007
Location: the Rocket City
Distribution: Debian, Ubuntu, CentOS; in days past Fedora, Solaris, SunOS, 4.2BSD, 4.3BSD, SVR4, AIX, HP-UX
Posts: 101

Rep: Reputation: Disabled
@non-programmers: a core file is produced when a program terminates unexpectedly. The file is called "core"; this term is left over from more or less ancient tradition.

@OP: locate and find work well.
 
Old 07-30-2010, 10:51 AM   #7
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Quote:
Originally Posted by ordinary View Post
@non-programmers: a core file is produced when a program terminates unexpectedly. The file is called "core"; this term is left over from more or less ancient tradition.

@OP: locate and find work well.
Ah, so like windows has its dump files? Makes sense now
 
Old 07-30-2010, 10:55 AM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,212

Rep: Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627
The answer:
http://rute.2038bug.com/node25.html....00000000000000

(See section 22.2.2)

Last edited by dugan; 07-30-2010 at 10:57 AM.
 
Old 07-30-2010, 10:56 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Ah, so like windows has its dump files? Makes sense now
However, in most distro's the creation of core files is disabled.
Code:
ulimit -a
will give more info

More info
http://aplawrence.com/Linux/limit_core_files.html

Please note, in order to use locate, and find the latest changes, you need to update the db, using
Code:
updatedb
 
Old 07-30-2010, 10:57 AM   #10
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Quote:
Originally Posted by dugan View Post
Is anyone else getting a gz' page attempted to download?!
 
Old 07-30-2010, 10:59 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,212

Rep: Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627Reputation: 2627
Quote:
Originally Posted by djsmiley2k View Post
Is anyone else getting a gz' page attempted to download?!
Use this mirror then:
http://rute.rlworkman.net/node25.htm...00000000000000

To the OP: this is obviously a job interview question. Based on repo's link, the answer the interviewers are looking for is probably:

Quote:
First I would look look in /proc/sys/kernel/core_pattern to see if a location and naming scheme has been set for core files. If it's not set, then the core file will be in the directory of the program that crashed.

Last edited by dugan; 07-30-2010 at 11:11 AM.
 
Old 08-02-2010, 09:46 AM   #12
shaktiman
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for Answering my question.

@djsmiley2k I am sorry for posting it twice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
giving search-string(s) from a file to linux "find" command Fond_of_Opensource Linux - Newbie 3 02-02-2009 06:14 PM
Using a single "Find" Command to find files bases on multiple criteria roboxooo Linux - Newbie 6 01-15-2009 04:13 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
(URGENT) Fedora Core 6 - Could not find logical volume "VolGroup00" linxnoob Linux - General 3 07-07-2007 05:36 AM
Several "find -exec" and "find | xargs" questions thanhvn Programming 4 12-02-2005 01:04 PM


All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration