PRINTENV(1)
π PRINTENV(1) π
okay bestie, we're doing the General Commands Manual thing today, and honestly? this one is a whole vibe. it's printenv, it lives in section 1, and it is exactly what it sounds like. no cap.
β¨ NAME β¨
printenv β Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.
like. it prints env. it's giving "the name tells you everything" energy and i am obsessed. π«Ά
πΈ SYNOPSIS πΈ
printenv [OPTION]... [VARIABLE]...
yep that's it. options, then variables, in that order. slay.
π¦ DESCRIPTION π¦
Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.
that's the whole thing fr fr. you hand it a variable name and it hands you back the value, all shiny and printed. you hand it nothing and it dumps the whole environment at you as name=value pairs, like a little group chat log of everything your shell is currently feeling. π
β OPTIONS β
-0,--nullβ end each output line with a 0 byte rather than newline. yes bestie, a literal NUL byte, the iconic separator for when your variable values are chaotic and might contain newlines. π-h,--helpβ Print help. the "what am i doing" button. π₯-V,--versionβ Print version. the "which one am i even running" button. π[variables]β the actual variable names you wanna peek at. lowercase in the docs, main character energy in real life.
π§ VERSION π§
v(uutils coreutils) 0.12.0
π EXAMPLES π
π Display key-value pairs of all environment variables
printenv
no arguments, no filter, just everything. full send.
π Display the value of a specific variable
printenv HOME
one variable, one answer. HOME said "here's where i live" and printenv delivered. π
π Display the value of a variable and end with NUL instead of newline
printenv [-0|--null] HOME
same deal but with a NUL at the end instead of a newline, for when you're piping into something that needs the fancy separator.
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
like, lowkey important: uutils is still cooking, so if an example ghosts you, that's why. not your fault, bestie. π
okay that's the whole page!! this was uutils coreutils v0.12.0, dated 2026-09-25, and you read the entire thing which means you're officially a printenv girlie now. go print some env. go off. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms