Entries in \c (2)

q truncates the results in stdout. How can I fix it?

To set q's console output to 80 columns wide and 24 rows high (console size), use \c:

q)\c 80 24

You can also use the $LINES and $COLUMNS environment variables to have q start up automatically with your preferred settings:

$ export LINES=40
$ export COLUMNS=120
$ q
KDB+ 2.7 2011.02.16 Copyright © 1993-2011 Kx Systems
q)\c
40 120
q)

To adjust the amount of output when access a q server via a web browser, see http page size (\C)

Lastly, you may be interested in .Q.s and .Q.s1

What environment variables do I need to know about when kdb starts up?

Here are several environment variables used by q during initialization:

You can read the value of any environment variable with the getenv function:

q)getenv `PATH
"/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:..
q)