Querying environment variables

You can use the echo command to query the value of an environment variable. For example, to determine the default logical destination, enter:

echo $PDPRINTER

To query all environment variables that have values set, enter:

env