PRINTENV(1)
๐ PRINTENV โจ
okay so bestie, printenv is a User Commands girly from the GNU coreutils family, and she's here to spill the tea on your environment variables. no cap.
๐ธ NAME ๐ธ
printenv โ print all or part of environment. that's it, that's the whole job, and she ate ๐
๐ SYNOPSIS ๐
printenv [OPTION] [VARIABLE]...
โจ DESCRIPTION โจ
so what she does is print the values of the specified environment VARIABLE(s). you hand her a variable name, she hands you back its value. simple. iconic.
and if you specify no VARIABLE at all? she's like "bet" and prints name and value pairs for them all. the whole entire environment. every last one. main character energy fr fr.
now the options, bestie, there are literally only three so this is gonna be quick:
-0,--nullโ end each output line with NUL, not newline. that's a NUL byte, not a\n. you know, for when you're piping into something that wants NUL-separated input. iykyk ๐ฆ--helpโ display this help and exit. she tells you how she works and then dips ๐--versionโ output version information and exit. she tells you how old she is and then dips ๐
โ ๏ธ okay important heads up bestie: your shell may have its own version ofprintenv, which usually supersedes the version described here. like, it might not even be thisprintenvyou're talking to. so please refer to your shell's documentation for details about the options it supports. don't come for me if your shell's version acts different, i literally warned you ๐ซถ
๐ AUTHOR ๐
Written by David MacKenzie and Richard Mlynarik. legends, honestly. we stan. ๐
๐ REPORTING BUGS ๐
found a bug? not her fault but also please tell someone:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. ๐ญ like literally none. zero. nada. she's free and she's yours but she promises nothing. periodt.
๐ฅ SEE ALSO ๐ฅ
- Full documentation <https://www.gnu.org/software/coreutils/printenv>
- or available locally via:
info '(coreutils) printenv invocation'
okay that's the whole page bestie, go forth and print those env vars ๐โจ
this has been GNU coreutils 9.12, dated September 2026, and that's on PRINTENV(1) โ stay slay, stay curious, and always quote your variables ๐๐ฆ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms