printenv

display environment variables and their values 

Command


SYNOPSIS

printenv [name]


DESCRIPTION

printenv displays the values of the variables in the environment. If a variable name is specified, only its value is displayed.

Examples of the environment variable names are:

HOME   pathname of user's home directory
PATH   search path for binary programs
TERM   type of terminal used

Note:

The variable name is case-insensitive.


EXAMPLES

Here is a small sampling of the output displayed by printenv:

HOME=c:/
ROOTDIR=C:/PROGRA~1/MKSTOO~1
TERM=nutc
LOGNAME=sandy

DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

A name was specified and it is not defined in the environment.


PORTABILITY

Windows 2000. Windows XP. Windows Server 2003. Windows Vista.


AVAILABILITY

MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
csh, export, sh

Miscellaneous:
environ


MKS Toolkit 9.2 Documentation Build 16.