utility

printenv

Prints selected exported environment values. Do not dump secret-bearing environments into logs.

Formal Syntax & Structure

bash syntaxbash
printenv NAME

Return Value

exit status

Prints selected exported environment values. Do not dump secret-bearing environments into logs.

Working Example

Example Snippetbash
BM_DEMO=fixture printenv BM_DEMO
Bash Reference