erlang-shell.org 1.8 KB

Starting

erl

Starting and adding directory to load path

erl -pa DIRECTORY

Start Nitrogen shell

bin/nitrogen console

Start watching for file changes

sync:go().

Exiting

There are multiple ways of exiting the Erlang shell.

quit procedure

This will tell the Erlang runtime to stop everything it is doing. Not suitable for a supposed to continue running cluster.

q().

key combination (abort)

C-c C-c a

key combination (quit)

C-c C-c q RET

key combination (soft quit)

This will merely leave the shell, keeping the Erlang runtime going.

C-g q RET

Reading all records of a module

rr(module_name).

List record definitions

rr(module_name).

Current working directory

pwd().

local variable definitions noexport