LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2005, 10:50 PM   #1
oasisbhrnw99
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
Cmd that shows which config files are for target exec?


Is there a command that you can run on a executable that shaws wich config files that executable reads before it runs??
 
Old 09-03-2005, 11:54 PM   #2
puffinman
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 31
You can try strings on the source code to see what files are referenced, or ptrace the binary as it runs, or read the man page or other documentation if it exists for the program in question.
 
Old 09-05-2005, 10:58 PM   #3
JCipriani
Member
 
Registered: Aug 2005
Location: Pittsburgh, PA, USA
Distribution: Redhat 9, OS X 10.4.x, Win2K
Posts: 85

Rep: Reputation: 15
Also, you can read the documentation for the program you are running; usually there is a decent amount of info about the configuration files it uses and how it uses them. There is no one command to show you which config files a program uses because there is no one unified way that all programs use to deal with configuration data.

Some good resource are the man and info pages for the program, and the program's web site if it has one. But, unfortunately, like I said, there's no one way to do that -- it depends on the program and you usually have to do some reading to find out about it.

Jason
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring files from the trash (cmd line) mtoneil Linux - General 1 09-02-2005 09:32 PM
Simple script to copy files, getting \r's at end of cmd ElricM Linux - Newbie 2 07-23-2005 11:21 AM
Transferring 40000+ files with FTP (mget) shows 0 files tim1235 Linux - Software 5 10-17-2004 06:06 PM
problems to exec files in a fat partition cancan Slackware 1 01-18-2004 04:53 PM
Cmd to rm dir thats has files and other dirs psyklops Linux - General 4 04-17-2002 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration