stupid question about etc/profile.d

Randy McMurchy randy at linuxfromscratch.org
Sat Dec 18 12:02:29 PST 2004


Corn Fed wrote:
> Somehow, in the 8 years I've been using linux, I've managed to completely
> miss the transition from a monolithic "profile" file in etc/ to the fancy
> "etc/profile.d" scheme.  So I'm building the latest unstable blfs, and I'm
> wondering if there's more information about the philosophy and logic
> behind this design, and tips for extending/customizing it?  Is there some
> free document floating around I can read? 
> 
> I searched on google, and tldp, but I guess I'm the only one that's been
> living in a cave...

It is not mandatory. Just put everything in /etc/profile if you
wish. I do. I don't see the need to maintain 15-20 files when
one will do. Totally personal preference.

And using /etc/profile.d is not magic. The contents of any file in
there is simply included in the /etc/profile file.

-- 
Randy



More information about the blfs-support mailing list