Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Does it have positive ... and understood. What are you trying to say here ? I understood everything other than that paragraph. Commented Feb 9, 2013 at 14:22
  • 3
    The shell environment is generally used for configuring the shell itself and other ubiquitous tools. This is not the only way that configuration could be done, so it is worth considering whether the environment is better or worse than the other options. By having "positive value", I meant that using the environment does seem to have some advantages over other options at least WRT "managing simple parameters" -- namely that it is very efficient and "widely recognized and understood"...and I'll add a bit to explain that phrase further. Commented Feb 9, 2013 at 16:23
  • What about appending lines to profile.local? Is this acceptable vs. creating scripts in the profile.d folder? Commented Jul 30, 2014 at 18:32
  • @AvindraGoolcharan Different distros may use different schemes for this kind of thing. The profile.d directory only works because its contents are sourced by /etc/profile, which is specified by shells such as bash as a startup file (see INVOCATION in man bash); if you edit /etc/profile, you can disable /etc/profile.d. /etc/profile.local seems to be a SUSE invention, presumably sourced from somewhere such as /etc/profile so that you can put your own stuff there. However, if you move it to a non SUSE system and don't make any other adjustments, it won't be used by anything. Commented Jul 30, 2014 at 19:09
  • Gotcha, that's crystal clear. Yeah we use SUSE at my job. /etc/profile. seems like a much better bet. Commented Jul 31, 2014 at 22:49