LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cmd that shows which config files are for target exec? (https://www.linuxquestions.org/questions/linux-general-1/cmd-that-shows-which-config-files-are-for-target-exec-359983/)

oasisbhrnw99 09-03-2005 10:50 PM

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

puffinman 09-03-2005 11:54 PM

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.

JCipriani 09-05-2005 10:58 PM

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


All times are GMT -5. The time now is 01:39 AM.