Server Fault is a question and answer site for system and network administrators. 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

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
See a discussion of this question at – Dennis Williamson Jan 7 '11 at 15:18
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
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
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


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.