← man/text
printenv — man printenv — 80×24
ugur@toprak:~/man/text$man printenv
Bölüm 1 Metin İşleme

printenv

print out the environment

Synopsis

     printenv [name]

Description

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.

Exit Status

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

See Also

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

Standards

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.

History

The printenv command appeared in 3.0BSD.

macOS 26.4 May 12, 2003 macOS 26.4