Introduction
Welcome Ninjas!
This blog will discuss an essential Linux/Unix concept, the Linux Environment. The Linux Environment variables define the Linux Environment. The user sets some variables, some by the system and others by programs or the Shell.

We hope you are very excited to see how Linux Environment works, so let’s dive into the concepts of the Linux Environment.
Overview of Linux Environment
This section will guide you through the essential components of the Linux Environment, which will let you understand the commands explained in the other part of the blog more clearly.
Computing Environment
The platform (Platform = Operating System + Processor) in which a user can run programs is known as the computing environment.
Variables
A variable in computer science is a place to store a value, which can be a filename, text, integer, or any other type of data. It is frequently referred to by the symbolic name assigned at creation. The value thus saved may be seen, removed, modified, and saved again.
Because they allow programmers to create flexible programs, variables are crucial in computer programming. It is essential to understand some of them and how we might impact them because they are connected to the Operating system on which we work.
Linux Environment Variables
Environment variables are dynamic values that influence a computer's processes or applications. Every operating system has these; however, the types can change. Environment variables provide the system's operation details and can be generated, updated, saved, and deleted.
Environment variables have the power to alter how software and programs operate.
Scope of Linux Environment Variables
Any variable's scope refers to the area from which it can be accessed or the area across which it is defined. In Linux, an environment variable may have either a global or local scope.
Global
Access to a globally scoped ENV defined in a terminal is possible from any location within the terminal's environment. It can be used in scripts, applications, or processes tied to the environment by that terminal.
Syntax to set global Env:
$ export NAME=Value
or
$ set NAME=Value
Where NAME is the name of the global variable and value is its value.


Local
Any program or process executing in the terminal cannot access a locally scoped ENV that is defined there. Only the terminal (in which it was defined) itself has access to it.
Syntax to set local Env:
$ NAME=Value
