{"id":26871,"date":"2018-05-21T02:21:47","date_gmt":"2018-05-21T07:21:47","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26871"},"modified":"2023-04-05T04:27:19","modified_gmt":"2023-04-05T09:27:19","slug":"guide-to-linux-environment-variables","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/guide-to-linux-environment-variables\/","title":{"rendered":"Guide to Linux Environment Variables"},"content":{"rendered":"
<\/div>

\"Guide<\/p>\n

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.
\nValues 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.<\/p>\n

Coreutils package is home to the env and printenv programs. To list all the environment variables that currently have a value, you just type:<\/p>\n

$ printenv<\/pre>\n

In the bash shell, there are two types of environment variables:<\/p>\n