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.

Where is the best location that will work with the most flavors of Linux (Ubuntu, CentOS, Fedora, Etc) to store system wide environmental variables?

Seems like all three of these locations will work. Which is the best?

/etc/environment
/etc/profile
/etc/bash.bashrc 

Thanks.

share|improve this question
    
Are these environemntal variables for use by a user in a shell or by some application? –  fpmurphy1 Jun 24 '12 at 19:20

1 Answer 1

That's just what files like /etc/profile are for. :)

share|improve this answer

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.