printenv (idb mode only)

Display the value of one or all environment variables.

Syntax

printenv [varname]

Parameters

varname

The environment variable whose value you want to display.

Description

This command displays the value of one environment variable if you specify varname, or all environment variables if you omit varname.

Example

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)

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.