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