Contents
What are environment variables in Unix?
Simply put, environment variables are variables that are set up in your shell when you log in.
They are called “environment variables” because most of them affect the way your Unix shell works for you.
One points to your home directory and another to your history file.
How do I see environment variables in Linux?
Linux: List All Environment Variables Command
- a) printenv command – Print all or part of environment.
- b) env command – Print all exported environment or run a program in a modified environment.
- c) set command – Print the name and value of each shell variable.