How do I view variables in Linux?

How do I view variables in Linux?
Answer
The most used command to displays the environment variables is printenv . If the name of the variable is passed as an argument to the command, only the value of that variable is displayed. If no argument is specified, printenv prints a list of all environment variables, one variable per line.
 

Tìm kiếm

Back
Top