‘exit’ fails to terminate kdb console. How do I gracefully exit a kdb process?

exit 0 or \\ or simply control+d from a console.

Inside a function, the double backslash requires escaping. Use value “\\\\” or system “\\\\”

Note: kdb process exits can be trapped via .z.exit.

This work is licensed under a Creative Commons License.
The views and opinions expressed herein are those of the authors and do not necessarily reflect those of any other person or legal entity.
Kdb+ is the registered trademark of Kx Systems, Inc.