[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System User's Guide: Operating System and Devices

Displaying the Value of an Environment Variable (printenv Command)

The printenv command displays the values of environment variables. If you specify the Name parameter, the system only prints the value associated with the parameter you requested. If you do not specify the Name parameter, the printenv command displays all current environment variables, showing one Name =Value sequence per line.

For example, to find the current setting of the MAILMSG environment variable, enter:

printenv MAILMSG

The command returns the value of the MAILMSG environment variable. For example:

YOU HAVE NEW MAIL

See the printenv command in the AIX Version 4.3 Commands Reference for the exact syntax.


[ Previous | Next | Contents | Glossary | Home | Search ]