List the names and values of all environment variables or, with VARIABLE, the value of the environment variable name.

      printenv [OPTION]... [VARIABLE]... 

   VARIABLE     The name of the environment variable.

   -0, --null   End each output line with 0 byte rather than newline.

   --help       Display this help and exit

   --version    Output version information and exit

Some shells may provide a builtin printenv command which is similar or identical to this utility.

“Everything you read in newspapers is absolutely true, except for that rare story of which you happen to have first-hand knowledge” ~ Erwin Knoll

Related linux commands

Equivalent Windows command: SET - comment.

Copyright © 1999-2024
Some rights reserved