HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lua — A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/man

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandluaweightcliprogrammingpowerfulembeddablelight

Problem

How to use the lua command: A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/manual/5.4/lua.html>.

Solution

lua — A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/manual/5.4/lua.html>.

Start an interactive Lua shell:
lua


Execute a Lua script:
lua {{path/to/script.lua}} {{--optional-argument}}


Execute a Lua expression:
lua -e '{{print("Hello World")}}'

Code Snippets

Start an interactive Lua shell

lua

Execute a Lua script

lua {{path/to/script.lua}} {{--optional-argument}}

Execute a Lua expression

lua -e '{{print("Hello World")}}'

Context

tldr-pages: common/lua

Revisions (0)

No revisions yet.