Alex Rivera | Logout

How can I set an environment variable for everyone under my Linux system?

Asked 2009-10-29T03:35:36.310
216

Can I have certain settings that are universal for all my users?

Edit
Report

1 Answer

153

As well as /etc/profile which others have mentioned, some Linux systems now use a directory /etc/profile.d/; any .sh files in there will be sourced by /etc/profile. It's slightly neater to keep your custom environment stuff in these files than to just edit /etc/profile.

answered 2009-10-29T03:53:52.020

Your Answer