Linux Environment Variables
The shell uses a feature called environment variables to store information about the shell session and the working environment (thus the name environment variables). This feature also allows you to store data in memory that can be easily accessed by any program or script running from the shell. This is a handy way to store persistent data that identifies features of the user account, system, shell, or anything else you need to store during the login session.
There are two types of environment variables in the bash shell:
-
Global variables
-
Local variables
This section describes each type of environment variable, and shows how to see and use them.
Global Environment Variables
Global environment variables are visible ...
Get Linux Fundamentals, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.