({{, (RefLink[Quit, paclet:ref/Quit])[]
terminates a Wolfram Language kernel session. }})

OpenersNotesSection(Spacer1)Details

(RefLink[Quit, paclet:ref/Quit])[] quits only the Wolfram Language kernel, not the front end.

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

All kernel definitions are lost when the kernel session terminates.

If you have kept the definitions in a file or in a notebook you can always reenter them in a subsequent session.

Before terminating a kernel session, the Wolfram Language executes any delayed value that has been assigned to the global variable (RefLink[$Epilog, paclet:ref/$Epilog]). Conventionally, this attempts to read in a file end.m of commands to be executed before termination.

On most computer systems, (RefLink[Quit, paclet:ref/Quit])[n] terminates the Wolfram Language kernel, passing the integer n as an exit code to the operating system.

(RefLink[Exit, paclet:ref/Exit]) is a synonym for (RefLink[Quit, paclet:ref/Quit]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

(RefLink[Quit, paclet:ref/Quit]) terminates the kernel, losing any definitions that have been made:

a=3

(RefLink[Quit, paclet:ref/Quit])[] will terminate the kernel. Do not enter it if you have any definitions you want to keep:

Quit[]

The previous definition for a has been lost:

a

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Return, paclet:ref/Return])  ▪  (RefLink[$IgnoreEOF, paclet:ref/$IgnoreEOF])  ▪  (RefLink[$Epilog, paclet:ref/$Epilog])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Using a Text-Based Interface, paclet:tutorial/UsingATextBasedInterface])}, {▪(RefLinkPlain[The Main Loop, paclet:tutorial/TheMainLoop])}, {▪(RefLinkPlain[Wolfram System Sessions, paclet:tutorial/WolframSystemSessions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Standalone Wolfram Language Kernels, paclet:guide/StandaloneWolframLanguageKernels])}})}})