How to Install and Use Steam Locomotive on Linux


In a Linux system, we often do mistakes while typing commands in the terminal. Learning from those mistakes and getting entertained by them could be good art.

Steam Locomotive is a utility containing 295 lines of code in the C language. It shows you what kind of mistakes people do while using the ls command in the terminal.

Install Steam Locomotive

Run the following command in the terminal to install Steam Locomotive on your system:

$ sudo apt-get install sl

Run Steam Locomotive

Now, open this tool to check how it works. So, type:

When you type this command, a moving train will enter from the right side and leave to the terminal window’s left side.

When the process has ended, it will terminate the “sl” command.

Now, let’s do more with this command:

  1. Use the sl -F command to fly your train on screen.
  2. Run sl -a to see how accidental train appears.
  3. Ping an sl –I command to reduce the size of the train.


sl is a tiny program to display user’s mistakes what they usually do when writing sl mistakenly instead of ls. This guide shows how to install the steam locomotive program in Linux and run it with different options.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More