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)