In Linux, environment variables are values accessed by processes and programs launched from the shell. They define various aspects of the environment where the shell and its child processes operate.
In the Linux shell, there are three types of environment variables:
System Environment Variables: The operating system sets these variables, which are available to all users and processes. Examples include PATH, HOME, and USER.
User Environment Variables: Users can set these variables to specify the default editor, shell, or aliases for their own processes.
Shell Environment Variables: Shell variables control the behavior of the shell, including prompt appearance, history settings, and input/output.
Comment