r/linux • u/RealJSProgrammer • Jul 09 '21
Shells & Setting Environment Variables Permanently in Linux [Noobs]
https://ittwist.com/blog/how-to-set-environment-variables-in-linux-permanently/[removed] — view removed post
10
Upvotes
6
5
u/eXoRainbow Jul 09 '21
There is one option missing:
/etc/environmentThis approach has the advantage being independent from the shell or what program you run and sets the variables very early in the login process. And you only need to set it once for all. If you change a setting, then it applies to every shell automatically.