The sl Steam Locomotive Easter Egg
Typing sl instead of ls sends a train across your terminal.
Run sl and an ASCII steam locomotive chugs across the screen.
01Command
Command
$ sl02What it does
sl exists to catch the very common typo of ls as sl. It animates a locomotive and accepts variants: -l for a little engine, -F for a flying train and -a for an accident.
03Risk
!Warning: It is purely a joke command and blocks the terminal until the animation ends, so do not use it in scripts.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: slEvidence: Installs sl, a joke command that displays a steam locomotive when ls is mistyped.
- mtoyoda/slEvidence: Original sl source; options include -a accident, -l little, -F fly and -c C51.
Last verified: 2026-09-20 · Category: Developer
06Related solutions
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.