---

How to Set Environment Variables in Linux

The environment variable is a pair of keys and values stored within the system and can be accessed by an application from the shell or sub-shell.

You can set environmental variables for your programs, such as user preferences, long commands into the more minor abbreviations, system locale, the path of the executable file, development environment variables, etc.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis