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:
PORTABILITY
Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.
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
- Miscellaneous:
- environ
PTC MKS Toolkit 10.5 Documentation Build 40.