---
name: "kdb_env"
section: "3"
platform: "linux"
package: "kernel-patch-kdb"
version: "2.1-3-1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/kdb_env/3"
---

# kdb\_env(3)

Environment manipulation commands

## NAME

env, set - Environment manipulation commands

## SYNOPSIS

env

set *environment-variable*=*value*

## DESCRIPTION

The kernel debugger contains an environment which contains a series of name-value pairs.  Some environment variables are known to the various kernel debugger commands and have specific meaning to the command; such are enumerated on the respective reference material.

Arbitrary environment variables may be created and used with  many commands (those which require an *address-expression*).

The **env** command is used to display the current environment.

The **set** command is used to alter an existing environment variable or establish a new environment variable.

## LIMITATIONS

There is a compile-time limit of 33 environment variables.

There is a compile-time limit of 512 bytes (**KDB\_ENVBUFSIZE**) of heap space available for new environment variables and for environment variables changed from their compile-time values.

## ENVIRONMENT

These commands explicitly manipulate the environment.

## SMP CONSIDERATIONS

None.

## USER SETTINGS

You can include "set" commands in kdb/kdb\_cmds (see kdb.mm) to define your environment variables at kernel startup.

## EXAMPLES

- env

  Display current environment settings.

- set IDCOUNT=100

  Set the number of lines to display for the **id** command to the value *100*.
