Guide to Linux Environment Variables

Postat pe grupul LUG Mures

Objects that are given by names and contain data used by at least one, usually multiple applications are called environment variables. Put simply, an environment variable is nothing more than a variable that has a name and a value. Values of environment variable could be the default editor that will be used, for example, the location of all files that can be executed in the system or local settings for the system. Beginners of Linux will find this a little difficult but the environment variable is an excellent way of sharing the configuration settings between several applications and processes. Coreutils package is home to the env and printenv programs. To list all the environment variables that currently have a value, you just type: $ printenv In the bash shell, there are two types of environment variables: Global variables Local variables Global environment variables From the shell session, the global environment variables are visible, and any child processes that the shell spawns.

Mai multe aici