---
title: "Starting, Interrupting, and Terminating"
canonical: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/startup-interrupt-quit.html"
source: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/startup-interrupt-quit.md"
part: "The Magma Language"
chapter: "Statements and Expressions"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "The Magma Language", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/index-magma-language.md"}
  - {"title": "Statements and Expressions", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/index-statements-and-expressions.md"}
prev: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/introduction.md"}
next: {"title": "Identifiers", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/identifier.md"}
intrinsics:
  - {"name": "control-C-key", "signature": "<Ctrl>-C"}
  - {"name": "quit", "signature": "quit;"}
  - {"name": "control-D-key", "signature": "<Ctrl>-D"}
  - {"name": "control-\\-key", "signature": "<Ctrl>-\\"}
---

# Starting, Interrupting, and Terminating

If Magma has been installed correctly, it may be activated by typing ‘magma’.

<a id="literal-literal-control-c-key-ctrl-c"></a>
## `<Ctrl>-C`

Interrupt Magma while it is performing some task (that is, while the user does not have a ‘prompt’) to obtain a new prompt. Magma will try to interrupt at a convenient point (this may take some time). If \<Ctrl>-C is typed twice within half a second, Magma will exit completely immediately.

<a id="literal-literal-quit-quit"></a>
## `quit;`

<a id="literal-literal-control-d-key-ctrl-d"></a>
## `<Ctrl>-D`

Terminate the current Magma-session.

<a id="literal-literal-control-key-ctrl"></a>
## `<Ctrl>-\`

Immediately quit Magma (send the signal SIGQUIT to the Magma process on Unix machines). This is occasionally useful when \<Ctrl>-C does not seem to work.
