Skip to content

Environment

Environment variables in the operating system, and q keywords for getting and setting them

Variables

Kdb+ refers to the following environment variables.

QHOME

folder searched for q.k and unqualified script names

defaults to $HOME/q (LInux, macOS) or C:\q (Windows)

QLIC

folder searched for k4.lic or kc.lic license key file

defaults to QHOME

QINIT

additional file loaded after q.k has initialized, executed in the default namespace

defaults to $QHOME/q.q.

LINES, COLUMNS

used to set \c

default to 25 and 80

Keywords

getenv

Get the value of an environment variable

gtime

UTC equivalent of local timestamp

ltime

Local equivalent of UTC timestamp

setenv

Set the value of an environment variable


environment sections in namespaces .Q, .z