-->

Using Linux Environment Variables

Linux environment variables help define your Linux shell experience. Many programs and scripts use environment variables to obtain system information and store temporary data and configuration information. Environment variables are set in lots of places on the Linux system, and you should know where these places are.

Using Linux Environment Variables
Using Linux Environment Variables


This article walks you through the world of Linux environment variables, showing where they are, how to use them, and even how to create your own. The chapter finishes off with how to use variable arrays.

Exploring Environment Variables

The bash 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. It is a handy way to store needed persistent data.

There are two environment variable types in the bash shell:

  • Global variables
  • Local variables


This section describes each type of environment variable and shows how to see and use them.

Note
Even though the bash shell uses specific environment variables that are consistent, different Linux distributions often add their own environment variables. The environment variable examples you see in this article may differ slightly from what’s available on your specific distribution. If you run into an environment variable not covered here, check your Linux distribution’s documentation

Next, i will post the explanation about Global variables and Local Variable. Take your time to read the articles to learn more about LINUX.

0 Response to "Using Linux Environment Variables"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel