How do I set environment variables in Linux?
Answer
In most Linux distributions when you start a new session, environment variables are read from the following files:
Answer
In most Linux distributions when you start a new session, environment variables are read from the following files:
- /etc/environment – Use this file to set up system-wide environment variables. …
- /etc/profile – Variables set in this file are loaded whenever a bash login shell is entered.