manpages.info - online man pages   

Mac OS X / Darwin man pages : printenv (1)
printenv (1)

Table of Contents

Name

printenv - print out the environment

Synopsis

printenv [name]

Description

printenv 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.

If a name is specified and it is not defined in the environment, printenv returns exit status 1, else it returns status 0.

See Also

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

History

The printenv command appeared in 3.0BSD.


Table of Contents