Display the value of one or all environment variables.
printenv [varname]
varname |
The environment variable whose value you want to display. |
This command displays the value of one environment variable if you specify varname, or all environment variables if you omit varname.
The following example displays the value of all environment variables.
(idb) printenv DESKTOP_STARTUP_ID= DISPLAY=:1.0 HISTCONTROL=ignoreboth HOME=/home/hal LESSCLOSE=/usr/bin/lesspipe %s %s LESSOPEN=| /usr/bin/lesspipe %s ... runlevel=2 (idb)
The following example displays the value of the HOME environment variable.
(idb) printenv HOME HOME=/home/hal (idb)
Copyright © 2001-2011, Intel Corporation. All rights reserved.