Contents
How do I set environment variables in Linux?
Linux List All Environment Variables Command
- printenv command – Print all or part of environment.
- env command – Display all exported environment or run a program in a modified environment.
- set command – List the name and value of each shell variable.
8 окт. 2020 г.
Where environment variables are stored in Linux?
The Global environment variables of your system are stored in /etc/environment . Any changes here will get reflected throughout the system and will affect all users of the system.