LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sl

Steam locomotive animation for typo correction

TLDR

Display a steam locomotive animation
$ sl
copy
Show a smaller locomotive
$ sl -l
copy
Make the locomotive fly
$ sl -F
copy
Show an accident (people crying for help)
$ sl -a
copy
Display the C51 locomotive instead of D51
$ sl -c
copy
Allow interruption with Ctrl+C
$ sl -e
copy
Combine options for flying little locomotive with accident
$ sl -alF
copy

SYNOPSIS

sl [-alFce]

DESCRIPTION

sl (Steam Locomotive) displays an ASCII art animation of a steam locomotive crossing the terminal. It was created as a humorous punishment for users who accidentally type sl instead of ls (list directory contents).When executed, a detailed ASCII train animation scrolls across the screen from right to left. By default, the program ignores Ctrl+C, forcing users to watch the entire train pass—a gentle reminder to type more carefully.The default locomotive is the D51 (a Japanese steam locomotive). The -c option shows the alternative C51 model. Options can be combined for effects like a flying miniature locomotive with passengers in distress.

PARAMETERS

-a

An accident occurs; people appear crying for help
-l
Display a smaller (little) locomotive
-F
The locomotive flies across the screen
-c
Show C51 locomotive instead of the default D51
-e
Allow interrupt with Ctrl+C; normally you must wait

INSTALL

sudo dnf install sl
copy
sudo pacman -S sl
copy
sudo apk add sl
copy
sudo zypper install sl
copy
brew install sl
copy
nix profile install nixpkgs#sl
copy

CAVEATS

By default, Ctrl+C is ignored, and you must wait for the animation to complete. Use -e to allow early termination. The animation may not display correctly in terminals with very small dimensions.

HISTORY

sl was created by Toyoda Masashi in 1993 at the University of Tokyo. It was designed as a joke program to discourage the common typo of typing sl instead of ls. The program has become a beloved piece of Unix humor and is available in most Linux distribution repositories.

SEE ALSO

ls(1), cowsay(1), fortune(1), figlet(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid