Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the js_composer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/holhol2/public_html/wp-includes/functions.php on line 6121
How to Install and Use Steam Locomotive on Linux – Holhol24 | Linux Tutorials and Guides

How to Install and Use Steam Locomotive on Linux

22

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.

Conclusion

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