Erlang has no version command but displays the version on entering the interactive shell.
The following Linux command(s) to check the installed version of Erlang and remain in the interactive shell.
erl
On
2019-08-09 the output was as follows.
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4 (abort with )
Press
Ctrl-Z to exit the interactive shell.
Here is a way to start Erlang, print the version, and exit without being in the interactive shell and having to press
Ctrl-Z.
The following Linux command(s) to check the installed version of Erlang and exit.
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().'
On
2019-08-14 the output was as follows.
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
"R16B03-1"