8

I know that the /etc folder handles different configuration files, but how does one know where the configuration files of a service (iscsi target for example) are located ?

Braiam
  • 67,791
  • 32
  • 179
  • 269
Daniel
  • 465
  • 2
  • 4
  • 14

2 Answers2

11

You will just have to find the name of package particular service comes from dpkg -S <Any file you know and think comes from that package which provided the service>

cat /var/lib/dpkg/info/<package>.conffiles

This will help.

jkt123
  • 3,530
  • 22
  • 24
PradyJord
  • 566
4

You open the manual page for the command or service you want it for. The conf file for iscsi is iscsi.conf

I tend to assume a conf file will have {service/application}.conf. Most applications I use have something like that (with MySQL as the exception ;) )

Rinzwind
  • 299,756