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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content