ctrl Verified current stable Not installed? Documentation

Ctrl / Quit Emacs

Quit Emacs

Quits the Emacs editor.

$
Terminal
<Ctrl x><Ctrl c>

When To Use

Utilized when the user needs to exit the Emacs environment.

Pro Tip

Set `C-x C-c` to terminate the current instance, but double-check if buffers are saved first.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
\[emacs]  Exit Emacs? (yes or no)  
\[emacs]  Saving file...  
\[emacs]  Done  
\[emacs]  Bye!

Command Breakdown

What each part is doing

<Ctrl
Base Command
The executable that performs this operation. Here it runs Ctrl before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Press <Ctrl> + x

  2. Step 2

    Then press <Ctrl> + c

  3. Step 3

    Confirm exit by typing 'yes' if prompted.

Alternative Approaches

Comparable commands in other tools

Alternative documentation tools for the same job.