Back to the learning path

printenv

printenv = print environment Command details
Step 1/1: One variable’s value

printenv NAME prints one environment variable, no $ needed; with no argument it lists them all like env.

$ printenv HOME
Beginnerprintenv
The value of a variable
Use printenv to print the value of the USER environment variable.
envNext lesson:source