man pages section 1: User Commands

Exit Print View

Updated: July 2014
 
 

printenv(1B)

Name

printenv - display environment variables currently set

Synopsis

/usr/ucb/printenv [variable]

Description

printenv prints out the values of the variables in the environment. If a variable is specified, only its value is printed.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
compatibility/ucb

See also

csh(1), echo(1), sh(1), stty(1), tset(1B), attributes(5), environ (5)

Diagnostics

If a variable is specified and it is not defined in the environment, printenv returns an exit status of 1.

Notes

This command is obsolete and will be removed in a future release of Oracle Solaris. See printenv(1) for an alternate implementation of this command.