[SOLVED] Linux configuration files naming convention
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry I can't remember where I read this before. I am looking for a document that would tell me what the file naming conventions are for. I forgot what this convention/structure is called, but I think this is supposed to be in addition to FHS.
In my experience, configuration files generally have the extension *.conf, except for runtime configuration files, which tend not to have extensions and tend to be named "[program name]rc," such as "bashrc."
In certain cases, such as BSD style init systems such as used by slackware, the rc files that run during system initialization are named "rc.[process name]. Here's examples from my own system (the ones in the far left column are directories).
That's exactly it. Grub2 is a good example of this.. I doubt this is a naming/filesystem convention as oppose to just a pragmatic solution utilised by some, for some purpose.
There are two main situations in which this kind of numbering takes place:
1) Programs that can process multiple configuration files need a way of coping with contradictions between them. A common rule is that later specifications override earlier ones. This in turn means that the files need to be processed in a particular order. Giving them a prefix number can ensure this, since files in a directory are always accessed in alphanumeric sorting order. Udev rules files work like this.
2) Sysvinit startup scripts also need to be processed in the correct order because many scripts depend on facilities that an earlier script has installed. So again, they have a sequence number for both startup (Snn) and shutdown (Knn).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.