TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Sl: a steam locomotive in your terminal

99 点作者 aaasen大约 12 年前

24 条评论

nuclear_eclipse大约 12 年前
On the Sun/Solaris machines where I first worked, the `sl` command had an added bonus: it played a really loud "choo-choo" sound from the workstation's internal speaker, regardless of volume or mute settings, so you <i>always</i> knew when someone fat-fingered their file listings, and much laughing was had by all.<p>I very quickly learned to alias sl=ls in my shell rc, and it's still in there to this day, just in case...
Argorak大约 12 年前
I highly recommend the debian bug tracker on `sl`:<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614158" rel="nofollow">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614158</a><p>Also, for those that love their cars "pre-tuned by german engineers", there is `gti`:<p><a href="http://r-wos.org/hacks/gti" rel="nofollow">http://r-wos.org/hacks/gti</a>
评论 #5430141 未加载
ggreer大约 12 年前
Veteran: "You should apt-get install sl."<p>Newbie: "What does sl do?"<p>Veteran: (perfectly straight face) "It trains you."
评论 #5430232 未加载
gee_totes大约 12 年前
I've always wondered: why is it a locomotive? Why not a penguin or something else?<p>Just thinking aloud here: ls stands for 'list'.... so sl stands for 'tsil'.... which is a model of a train? No, that's not it.<p>I think there's a missing part to this joke.<p>[edit] Just stepped away from my desk and took two steps and figured it out: sl = steam locomotive
评论 #5429693 未加载
评论 #5428656 未加载
评论 #5428610 未加载
Oompa大约 12 年前
I added this to Homebrew years ago, for those OS X users.
评论 #5428807 未加载
评论 #5428780 未加载
Blahah大约 12 年前
When a colleague accidentally types their password to our cluster into a chat window, the first thing I do is login as them and alias ls=sl. Another fun one is to add `telnet towel.blinkenlights.nl` to their .bashrc, so on login they get to watch ascii star wars.
评论 #5430109 未加载
评论 #5430405 未加载
adimitrov大约 12 年前
The one bad thing about switching to the Dvorak layout is that in Dvorak, ls is really cumbersome to type. The l isn't on the home-row, and both of them are on the right pinky. The way I do it now, it's virtually impossible to type sl instead of ls.<p>Typing dc instead of cd, though is still very common. And dc just mockingly tells me: "will not attempt to process directory."<p>(I now have `no` aliased to ls. Maybe I should alias `on` to sl.)
laumars大约 12 年前
<p><pre><code> &#62; The following code changes the default behaviour of ls from listing &#62; files to turning your terminal into an unstoppable steam locomotive. &#62; The only way to end it is closing the terminal, so use this with caution. </code></pre> erm, that's easily stopped:<p><pre><code> [ctrl]+z $ pkill -9 sl</code></pre>
评论 #5429529 未加载
评论 #5429226 未加载
rdtsc大约 12 年前
Bonus info:<p>if you add arguments to sl like -l or -a you get a different locomotive or other effects!
Mindless2112大约 12 年前
Why alias commands to sl? The point is for it to be triggered on bad typing.<p>Also, the man page is worth a look -- <a href="http://manpages.ubuntu.com/manpages/precise/man6/sl.6.html" rel="nofollow">http://manpages.ubuntu.com/manpages/precise/man6/sl.6.html</a>
captn3m0大约 12 年前
The moving train uses js for motion. I stripped that part to <a href="http://jsbin.com/ujizup/1" rel="nofollow">http://jsbin.com/ujizup/1</a>
orvtech大约 12 年前
I did a little video on this a couple of weeks a go with a mini how to for Fedora users <a href="https://news.ycombinator.com/item?id=4766611" rel="nofollow">https://news.ycombinator.com/item?id=4766611</a>
frankblizzard大约 12 年前
first saw this thing around 12 years ago on an AS/400 terminal. Our neckbearded Lead Programmer was supposed to have programmed it in RPG but probably this thing is even older?
评论 #5428655 未加载
benhalllondon大约 12 年前
Great, excellent, fun.<p>But, clearly, it should run 'ls' after doing its choo choo?
评论 #5429169 未加载
评论 #5428707 未加载
评论 #5431423 未加载
评论 #5428717 未加载
niggler大约 12 年前
"Note: I actually didn't use a marquee for this. The one good use for one, and I missed it. Damn."<p>Is this even a good example for using html marquee?
prezjordan大约 12 年前
How did you get this in the main repositories? I'm curious what the process is for something like that.
评论 #5429487 未加载
davidroberts大约 12 年前
I just installed it on my Raspberry Pi. It's in the Raspian repository too!
nilsbunger大约 12 年前
If you're on a Mac with homebrew, "brew install sl" will get you there!
mbubb大约 12 年前
Not the same thing but "apt-get moo" on a Debian based box is fun...
dogface大约 12 年前
Oh come on! This isn't news. I was using sl fifteen years ago.
mostly_harmless大约 12 年前
alternatively if you are really evil, you can 'alias ls="rm -rf"'
jzoidberg大约 12 年前
We need one for "got"
评论 #5429557 未加载
评论 #5429220 未加载
systematical大约 12 年前
had to apt-get sl
barkingcat大约 12 年前
on os x - brew install sl brings it in.