commands.sh

printenv

all

Print values of environment variables.

More info →

Options (1)

-0, --nullboolean

Display the value of a variable and end with NUL instead of newline

Example: printenv {{[-0|--null]}} {{HOME}}

Examples (3)

Display key-value pairs of all environment variables

Display the value of a specific variable

Display the value of a variable and end with NUL instead of newline

printenv [-0|--null] HOME
made by @shridhargupta | data from tldr-pages