How do I make changes to my shell environment permanent?

Updated -

In some circumstances you may wish to make environment variables permanent between sessions, users, globally, or reboots.

Global Settings

The /etc/profile file contains system wide environment variables and settings. All customizations that you put in this file will apply for every user on the system, including processes running as users.

For example if you ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In