I understand that the former is loaded prior to the latter, but what is the difference in their purpose and otherwise? Are there any good reasons I should set some variables in one and not the other?
What little I understand is 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?
And regarding the difference, which program traditionally reads /etc/environment
? Is it related to POSIX, or just a convention?