Introduction
Environment variables store information that programs and scripts use to work properly. They help keep settings like paths and user preferences outside the code, making it easier to change behavior without editing scripts.
When you want to set a temporary value for a program to use during its run.
When you need to share configuration settings like database addresses or API keys across multiple scripts.
When you want to check what settings or paths are currently active in your shell.
When you want to make a variable available to all programs started from your shell.
When you want to customize your command prompt or other shell behaviors.