One of the most common mistake is typing sl instead of ls command. I actually set an alias i.e. alias sl=ls; but then you may miss out the steam train with whistle.
sl is a joke software or classic UNIX game. It is a steam locomotive runs across your screen if you type "sl" (Steam Locomotive) instead of "ls" by mistake.
Install sl
Type the following command under Debian / Ubuntu Linux, enter:
# apt-get install sl
It is also available on FreeBSD and other UNIX like operating systems. Next, mistyped ls command as sl:
$ sl
It also supports the following options:
- -a : An accident seems to happen. You'll feel pity for people who cry for help.
- -l : shows little one.
- -F : It flies.
- -e : Allow interrupt by Ctrl+C.
Related: Linux / UNIX Desktop Fun: Terminal ASCII Aquarium.
You should follow me on twitter here or grab rss feed to keep track of new changes.
This blog post is 2 of 5 in the "Linux / Unix Desktop Fun" series. Keep reading the rest of the series:













{ 15 comments… read them below or add one }
Awesome ;)
working with ls will be more fun now .
I installed sl and saw the locomotive, but it didn’t whistle. Bummer.
Not sure about Linux but on the Solaris boxes it actually made a very loud whistle noise. It sent the audio to the hardware speaker inside the case. It means everyone in the Lab knew that you mistyped ls.. lol!
is fun but no whistle
no whistle on fedora 15 :-( oh well ill makes typo’s more fun!
SCHAAAAAAAWEEEEET
Confirm no whistle on Ubuntu 10.04 LTS (64 bit)
i want to see the code of sl command can i…
@ Hari -> i want to see the code of sl command can i
Yes you can here are the steps. Execute the following command
username@Linux-ubuntu:~$ whereis sl
sl: /usr/bin/sl /usr/share/man/man6/sl.6.gz
You should get the sl script location -> sl: /usr/bin/sl
Then you need to navigate to that path
username@Linux-ubuntu:~$ cd /usr/bin/
Now execute the below command to view the script
username@Linux-ubuntu:~$ strings sl ################################################################## ################################################################## /lib/ld-linux.so.2 libncurses.so.5 __gmon_start__ _Jv_RegisterClasses scrollok stdscr waddch noecho _fini endwin _init wrefresh leaveok COLS mvcur wmove initscr LINES libc.so.6 _IO_stdin_used signal usleep __libc_start_main _edata __bss_start _end GLIBC_2.0 PTRh <Fu t-<at"~ [^_] [^_] [^_] [^_] [^_] VUUU <[^_] WVSQ Y[^_] [^_] ( ) ( ) ( ) (@@@) (@@@@) (@@) Help! ____________________ | ___ ___ ___ ___ | | |_| |_| |_| |_| | |__________________| (O) (O) ____ | \@@@@@@@@@@@ | \@@@@@@@@@@@@@_ | | (O) (O) ++ +------ || |+-+ | /---------|| | | + ======== +-+ | _|--O========O~\-+ //// \_/ \_/ _|--/O========O\-+ _|--/~O========O-+ _|--/~\------/~\-+ //// \_O========O //// \O========O/ //// O========O_/ _________________ _| \_____A =| | -| | __|________________________|_ |__________________________|_ |_D__D__D_| |_D__D__D_| \_/ \_/ \_/ \_/ ==== ________ ___________ _D _| |_______/ \__I_I_____===__|_________| |(_)--- | H\________/ | | =|___ ___| / | | H | | | | ||_| |_|| | | | H |__--------------------| [___] | | ________|___H__/__|_____/[][]~\_______| | |/ | |-----------I_____I [][] [] D |=======|__ __/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__ |/-=|___|= || || || |_____/~\___/ \_/ \O=====O=====O=====O_/ \_/ |/-=|___|=O=====O=====O=====O |_____/~\___/ \_/ \__/ \__/ \__/ \__/ \_/ __/ =| o |=-O=====O=====O=====O \ ____Y___________|__ __/ =| o |=-~O=====O=====O=====O\ ____Y___________|__ |/-=|___|= O=====O=====O=====O|_____/~\___/ \_/ \_O=====O=====O=====O/ \_/ ##################################################################wow it’s cool man… :D
@hari prasad k
cd /tmp/sl
apt-get source sl
ha ha :-) Perfect example of the fact, that good things can come from beein bored…
Okai if you wanna a train whistle / air whistle, create a script as follows:
aplay is my command line .wav file player and download .wav files here. Now set alias as follows in ~/.bashrc:
You can thank me later :) .
And whats even more annoying is when you place in your bashrc:
alias ls=’sl’
Place it on a friday afternoon 5pm at a active used server, save, quit and leave for a week or 2 to a sunny location of choice.
If you want whistle on Mac, you can use Sox, and this script:
play -q ~/whistle.wav & sl $*
and after that make an alias to this script.