Lisp Hello World Example: How To Write and Execute Lisp Program on Linux OS

by Ramesh Natarajan on December 18, 2009

Question: I would like to understand the basics of how to write and execute Lisp program on Linux OS. Can you explain it with a simple example?

Answer: In this article, let us review very quickly how to write a basic Hello World Lisp program and execute Lisp program on Linux or Unix OS.

1. Write a Hello World Lisp Program

Create the helloworld program using the Vim editor as shown below.

$ vim helloworld.lisp


; hello world lisp program.
(print "Hello World")

Note: Comment in Lisp starts with ;

2. Make sure Lisp Interpreter is installed on your system

Make sure Lisp interpreter clisp is installed on your system as shown below.

$ which clisp
/usr/bin/clisp

Installing clisp interpreter/compiler

If you don’t have Lisp interpreter, install it as shown below.

$ sudo apt-get install clisp

3. Execute the Lisp Program

You can execute using clisp helloworld

$ clisp helloworld

"Hello World" 

Note: As Lisp program is interpreted, we don’t have the compilation step similar to the C program.

4. Lisp Tutorial

Refer to An Introduction and Tutorial for Common Lisp for additional Lisp information.


Linux Sysadmin Course Linux provides several powerful administrative tools and utilities which will help you to manage your systems effectively. If you don’t know what these tools are and how to use them, you could be spending lot of time trying to perform even the basic administrative tasks. The focus of this course is to help you understand system administration tools, which will help you to become an effective Linux system administrator.
Get the Linux Sysadmin Course Now!

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

{ 1 comment… read it below or add one }

1 Thokchom Hemalata Devi May 10, 2013 at 12:05 am

I am very interesting these pages and I hoped if you publish some tutorials of using Ultrasoft Lisp programs

Leave a Comment

Previous post:

Next post: