Starting and Stopping the Erlang Shell

On a Unix system (including Mac OS X), you start the Erlang shell from a command prompt; on a Windows system, click the Erlang icon in the Windows Start menu.

 
$ ​erl
 
Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:4:4] [async-threads:10]
 
[hipe] [kernel-poll:false]
 
Eshell V5.10.1 (abort with ^G)
 
1>

This is the Unix command to start the Erlang shell. The shell responds with a banner telling you which version of Erlang you are running. The easiest way to stop the system is just to press Ctrl+C (Windows Ctrl+Break) followed by a (short for abort), as follows:

 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
 
(v)ersion (k)ill (D)b-tables (d)istribution
 
a
 
$

Typing a will immediately stop ...

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.