How do you cleanly exit interactive Lua? August 30, 2023 by Tarik There is no quit keyword. Try control-D in Unix, control-Z in Windows or os.exit() if you must.