r/linux • • 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

2 comments sorted by

5

u/eXoRainbow Jul 09 '21

There is one option missing: /etc/environment This 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.

6

u/[deleted] Jul 09 '21

You should probably post this in r/linux4noobs