Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hey there, I was wondering what the suffix .d on directories in a linux environment means for example:

  • init.d
  • vhosts.d

thanks a lot :)

share|improve this question
1  
See a discussion of this question at unix.stackexchange.com. –  Dennis Williamson Jan 7 '11 at 15:18

2 Answers 2

up vote 10 down vote accepted

It is most often used to denote a directory that contains scripts and or configuration files for the system or a particular service or application

/etc/init.d - system service configuration
/etc/logrotate.d - logrorate configuration
...
share|improve this answer
4  
It's worth noting that this is by convention, not by magic. Each program which uses this does it with it's own code in a slightly different way. Sometimes they're loaded in alphabetical order, sometimes not. Sometimes all files in the directory are loaded. Sometimes just .conf files, sometimes all files except those without common backup suffixes.... –  mattdm Jan 7 '11 at 12:39

The ".d" suffix should mean to You that one should think twice before placing here any files, because some daemon or program can include all files from that directory in its configuration files. So files placed here need to be in proper format/language etc. Its very useful convention and respecting it may be only good for You :) ...and the letter "d" - I guess it's simple from " d irectory"?

share|improve this answer
2  
It's more likely to come from daemon ;) –  pehrs Jan 7 '11 at 12:24
    
Actually, I think from "directory" is much more likely. Init daemon for init scripts? Maybe. But profile daemon? –  mattdm Jan 7 '11 at 12:35

Your Answer

 
discard

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.