Linux environment vs profile

environment: Environment variable that is applied at system startup. It affects the entire system. The file location is in /etc/environment.

profile: Environment variables applied at login and user-specific settings exist as /home//.profile, and are applied to environment variables of all logged-in users by applying to /etc/profile.

environment can be applied to applications that do not use the shell.

And profile just re login applied to Environment variables

Facebook Comments

Leave A Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.