Linux/Unix 桌面趣事:蒸汽火车

Linux/Unix 桌面趣事:蒸汽火车

2015年12月28日1 次浏览来源:Linux中国阅读原文

你是不是经常把 ls 输入成了 sl。我已经设置了一个别名,也就是 alias sl=ls。但是这样你也许就错过了这辆带汽笛的蒸汽小火车了。

sl 是一个搞笑软件或,也是一个 Unix 游戏。它会在你错误地把“ls”输入成“sl”(Steam Locomotive)后出现一辆蒸汽火车穿过你的屏幕。

安装 sl

在 Debian/Ubuntu 下输入下面的命令:

# apt-get install sl

它同样也在 Freebsd 和其他类Unix的操作系统上存在。

下面,让我们把 ls 输错成 sl:

$ sl

Fig.01: Run steam locomotive across the screen if you type

图01: 如果你把 “ls” 输入成 “sl” ,蒸汽火车会穿过你的屏幕。

它同样支持下面的选项:

  • -a : 似乎发生了意外。你会为那些哭喊求助的人们感到难过。
  • -l : 显示小一点的火车
  • -F : 它居然飞走了
  • -e : 允许被 Ctrl+C 中断
分享
Baike.dev

baike.dev helps you discover great languages, frameworks, databases, DevOps and cloud-native tools.

Quick links

About

Contribute

Found a great developer tool? Share it with the community.

Submit a tool
© 2026 baike.dev Developer EncyclopediaUpdated daily · Discover great developer tools