How Do You Write a Hello World Program in Lua?

Problem scenario
You want to run a basic Lua program as a test.  What do you do?

Solution
Prerequisite

You must have installed the Lua compiler.  If you are using a CentOS/RHEL/Fedora server, try this link.

Procedures
1.  Create a file called contint.lua with the following line:
print("This is a Hello World program")

2.  Run it with this command: lua contint.lua

Leave a comment

Your email address will not be published. Required fields are marked *