tail head cat sleep
QR code linking to this page

Manual Pages  — PRINTENV


printenv – print out the environment



printenv [name]


The printenv utility prints out the names and values of the variables in the environment, with one name/value pair per line. If name is specified, only its value is printed.

Some shells may provide a builtin printenv command which is similar or identical to this utility. Consult the builtin(1) manual page.


The utility exits 0 on success, and >0 if an error occurs.


csh(1), env(1), sh(1), environ(7)


The printenv utility is provided for compatibility with earlier BSD and FreeBSD releases and is not specified by any standards. The functionality of printenv can be duplicated with the echo(1) and env(1) utilities.


The printenv command appeared in BSD 3.0 .

PRINTENV (1) May 12, 2003

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook