Linux command
sl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display a steam locomotive
sl
Show a smaller locomotive
sl -l
Make the locomotive fly
sl -F
Show an accident
sl -a
Display the C51 locomotive
sl -c
Allow interruption
sl -e
Combine options
sl -alF
说明
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.
参数
- -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
FAQ
What is the sl command used for?
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.
How do I run a basic sl example?
Run `sl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in sl?
An accident occurs; people appear crying for help