Google Answers Logo
View Question
 
Q: Unix/Linux Directory Naming Conventions ( No Answer,   1 Comment )
Question  
Subject: Unix/Linux Directory Naming Conventions
Category: Computers > Software
Asked by: digix-ga
List Price: $5.00
Posted: 17 Dec 2004 15:53 PST
Expires: 16 Jan 2005 15:53 PST
Question ID: 444130
What is the intended meening of the ".d" directory extension, naming
convention, within todays Linux computing environment?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Unix/Linux Directory Naming Conventions
From: vladimir-ga on 18 Dec 2004 11:55 PST
 
The ".d" directories are used like this:

Instead of adding text to one configuration file, e.g.
/etc/httpd/conf/httpd.conf, you add a file to the appropriate ".d"
directory (/etc/httpd/conf.d in this case).

It usually works just like if the files from the ".d" directory were
included verbatim in the main configuration file.

Why would you want to do it like that, instead of just adding your
stuff to one global configuration file? It is much simpler and cleaner
when installing packages - for example from an .rpm or .deb file. The
installer doesn't have to parse the configuration file to see in which
place to add the needed lines. It just places a file in the ".d"
directory. And when you remove the package, the file is removed -
imagine the pain if you tried to remove the right lines from the
global configuration file.

The scheme is used by many applications: cron, xinetd, PHP, PAM, even
by the shells (/etc/profile.d).

I don't know what the letter ".d" stands for.

Hope this helps,

Vladimir

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy