🧀 Learn Linux

Advanced · Let commands collaborate

printenv: Output the value of the environment variable

Put in free practice

Syntax

printenv [variable name...]

Examples

printenv HOME

Usage and sandbox support

When viewing a single variable, the variable name does not need to be output.

Hands-on exercises

Full documentation ↗

Related commands