Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

printenv

v(uutils coreutils) 0.8.0
printenv [OPCIÓN]... [VARIABLE]...

Mostrar los valores de las VARIABLE(s) de entorno especificadas, o (sin VARIABLE) mostrar pares nombre y valor para todas ellas.

Options

--null, -0

terminar cada línea de salida con byte 0 en lugar de nueva línea

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Display key-value pairs of all environment variables:

printenv

Display the value of a specific variable:

printenv {{HOME}}

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

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

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.