๐ Type 'ls' wrong on Linux and a steam locomotive drives across your screen.
No, really....
Meet sl, one of the greatest typo punishments ever written.
๐ง๐ต๐ฒ ๐๐๐ผ๐ฟ๐ ๐ฏ๐ฒ๐ต๐ถ๐ป๐ฑ ๐ถ๐
Back in the early 1990s, a Japanese programmer named Toyoda Masashi got tired of mistyping ls (the command to list files) as sl and getting a boring "command not found" error.
So he did what any reasonable developer would do: he wrote a program that punishes you for the mistake in the most delightful way possible.
Type sl by accident? A full ASCII steam locomotive comes chugging across your terminal and you can't skip it. You just have to sit there and watch it. That's the whole point.
It went viral in Unix circles, got packaged into Linux repos worldwide, and has been trolling sysadmins ever since.
โโโโโโโโโโโโโโโโโโโโโโโโโ
๐๐ป๐๐๐ฎ๐น๐น๐ถ๐ป๐ด ๐ถ๐
Open the terminal and type the linux command based on your favorite Linux destribution:
โข Debian / Ubuntuย โย sudo apt install sl
โข Fedora / RHELย ย โย sudo dnf install sl
โข Arch Linuxย ย ย ย โย sudo pacman -S sl
๐๐น๐ฎ๐ด๐ ๐๐ผ๐ฟ๐๐ต ๐ธ๐ป๐ผ๐๐ถ๐ป๐ด
Flags areย sometimes known as options or switches.
sl isn't just one train. It comes with options:
-aย โย Passengers appear in the windows screaming for help ๐
-lย โย A smaller, little locomotive ๐
-Fย โย The train flies across the screen โ๏ธ
-eย โย Lets you interrupt it with Ctrl+C (cheating, but valid) ๐
The -a flag is the fan favourite. Highly recommended.
โโโโโโโโโโโโโโโโโโโโโโโโโ
sl is a 30-year-old program with zero productivity value and it's still being maintained, still packaged, and still making people smile when they fat-finger a command.
That's the Linux spirit in a nutshell.
Install it on your homelab server. Your future self will appreciate the company during late-night SSH sessions. ๐
Have you stumbled across sl before? Drop a ๐ in the comments.
Type 'ls' wrong on Linux. Watch what happens
|Kevin Villarreal
0 comments