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 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

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


SEE ALSO

Commands:
csh, export, sh

Miscellaneous:
environ


PTC MKS Toolkit 10.1 Documentation Build 15.