Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
when setting an env.var in a shell (using "export") then it is used in that shell, where it has been set, but in none of other shells that are opened later for example.
how could i set this variable, so that it will ALWAYS be used by every shell?
I guess that I don't undertstand what it is that you are trying. Putting it in the config files means that it is set for all new shells started by the user. Do you mean that it can vary and is not static?
yes sort of. i want to set (and change) the variable anytime.
for example, in a running shell issue a command which changes some env.var, and this variable should be updated in every other shell, program, whatever.
You can't do that, I don't think...Imagine the security implecations if a user could change the value of an environment variable in every process running on the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.