Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
find /etc -iname "*iscsi*" – Naftuli Tzvi Kay May 9 '14 at 16:52
up vote 1 down vote accepted

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 ;) )

share|improve this answer
other is for sshd sshd_config and more, who knows – PradyJord May 9 '14 at 12:47

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.

share|improve this answer
I like yours more than mine ;=) – Rinzwind May 9 '14 at 13:00
@Rinzwind Just joined today, so appreciate this comment. Thanks! – PradyJord May 9 '14 at 13:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.