手册页部分 1: 用户命令

退出打印视图

更新时间: 2014 年 7 月
 
 

printenv(1B)

名称

printenv - display environment variables currently set

用法概要

/usr/ucb/printenv [variable]

描述

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

属性

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
compatibility/ucb

另请参见

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

诊断

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

附注

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.