28
15
I understand that the former is loaded prior to the latter, but what is the conceptual difference? Are there any good reasons I should set some variables in one and not in other? Except the fact that /etc/environment
seems to exist to set up environment for all processes run by the system, while /etc/profile
is for setting up environment used and propagated from the login shell, correct?
Also, on a side note, which program traditionally reads /etc/environment
? Is it related to POSIX, or just a convention?
It works on RedHat (as of 7.6). The '/etc/environment' is empty was my server and setting
VAR=value
took effect in a shell (after re-login). – DKroot – 2019-05-15T17:37:06.917