Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux/Unix environment variables

Where Linux/Unix environment variables are kept? How can I add my own environment variable and make it persistent, not only within currently running script?

like image 768
Alex F Avatar asked Jul 15 '26 16:07

Alex F


1 Answers

you can add them in your profile, eg ~/.bash_profile. global profile is usually located in /etc. eg /etc/profile. Take a look also at /etc/profile.d directory if you have it.

like image 175
ghostdog74 Avatar answered Jul 18 '26 04:07

ghostdog74



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!