This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / Mathematica Sessions /


FilledSmallSquare Quit[ ] terminates a Mathematica kernel session.

FilledSmallSquare Quit[ ] quits only the Mathematica kernel, not the front end.

FilledSmallSquare To quit a notebook front end, choose the Quit menu item.

FilledSmallSquare All kernel definitions are lost when the kernel session terminates.

FilledSmallSquare If you have kept the definitions in a file or in a notebook you can always re-enter them in a subsequent session.

FilledSmallSquare Before terminating a kernel session, Mathematica executes any delayed value that has been assigned to the global variable $Epilog. Conventionally, this attempts to read in a file end.m of commands to be executed before termination.

FilledSmallSquare On most computer systems, Quit[n] terminates the Mathematica kernel, passing the integer n as an exit code to the operating system.

FilledSmallSquare Exit is a synonym for Quit.

FilledSmallSquare See Section 1.0.2, Section 2.14.1 and Section A.7.5.

FilledSmallSquare See also: Return, $IgnoreEOF.

FilledSmallSquare New in Version 1.