Add permanent variable to environment

Could be stupid questions i am newbie in linux so be patient on me :sweat_smile:
I wan to add


I used export but i understand later this for the current shell i searched for permanent solution but i didn’t understand will 🤦

Add the line to your /etc/environment file.

It needs root or sudo rights to edit. This will make it system-wide and applied at boot.


You can also read more about Environment Variables here:

There are multiple ways to set the variable per user instead of putting it in /etc/environment if you want to do that.

1 Like

Exists a aur package (for inspiration :wink: )