Sei sulla pagina 1di 6

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

sign up

log in

tour

help

Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Unix & Linux pranks


Which harmless pranks do you know that would be great to play on your collegues?
/ humor

edited Oct 5 '10 at 15:06

community wiki 2 revs, 2 users 100% Eimantas

7 2

Harmless for them? Or harmless for you when they come find their revenge? Stefan Lasiewski Aug 12 '10 at 18:32 Harmless to the system. Eimantas Aug 13 '10 at 3:34

locked by Michael Mrozek Jan 22 '12 at 19:50


This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

23 Answers
I do not know if this qualifies as a prank, but you can watch StarWars on a shell !
telnet towel.blinkenlights.nl

About it.
answered Aug 11 '10 at 5:51 community wiki Moeb

I love that one! Swish Aug 11 '10 at 17:05 Kicking! That is awesome! geoffc Aug 12 '10 at 1:03 If you enable the ASCII art output driver (colour optional) for mplayer you can watch the actual film in ASCII! Troubadour Aug 20 '10 at 14:28

Install "sl". Choo choo! http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html


==== _D _| / | |/ | |(_)--| | | | | ________ H\________/ | H H | | | | | ___________ \__I_I_____===__|_________| =|___ ___| ||_| |_|| ___! | | =| -| _________________ _| \_____A | |

|_______/

|__--------------------| ! ! ! D

| ________|___H__/__|_____/ ! !"\_______| |-----------I_____I /""\ || \__/ \__/ /""\ || \__/ \__/ || __/ =| o |=-""\ |/-=|___|| \_/

|=======|____|________________________|_ |_D__D__D_| \_/ \_/ |_D__D__D_| \_/ \_/

/""\ ____#___________|__|__________________________|_ |_____/"\___/ \_/

"SL (Steam Locomotive) runs across your terminal when you type "sl" as you meant to type 'ls'. It's just a joke command, and not usefull at all. Put the binary to /usr/local/bin."
edited Aug 12 '10 at 14:59 community wiki 2 revs, 2 users 88% invert

This is essentially a duplicate of this answer, but the engine has no way of indicating that Michael Mrozek Oct 6 '10 at 22:31

Sometimes I'll ssh into my machine at home and spook my wife (or the cat) by playing a message over the speakers using festival text-to-speech.

1 of 6

1/26/2014 12:43 AM

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

e$ho %Helllloooo&

Is anyone home'% | (esti)al --tts

answered Aug 12 '10 at 16:15

community wiki jjclarkson

woww... that's kinda funny and kinda cruel... xenoterracide Aug 12 '10 at 23:31

I once had an IM conversation with my wife in which she typed her messages into IM and I typed my replies into an ssh shell which spoke them to her. She nearly died laughing. It started when she was afk and I was trying to get her attention. She thought the computer had a virus. For a while I was pretending my replies were coming from the computer itself, as if she was having a conversation with it. Neil Mayhew Sep 10 '10 at 21:55 ** i(=/*e)/s*a o(=/*e)/*sp - oh, thos happy days... polemon Sep 11 '10 at 6:38

Append this line to

"/.bashr$

(assuming the default shell is bash)

e+port ,-./,0_1.//A2D=%$*%

No matter where the victim From the bash man page:


,-./,0_1.//A2D

$*

to, he/she will still end up in

3H./4

I( set5 the )al6e is e+e$6te* as a $omman* prior to iss6ing ea$h primary prompt.

answered Aug 11 '10 at 12:42

community wiki Shawn Chin

$at774.8 99 "/.bashr$ alias $*=:e$ho %;egmentation (a6lt% << e$ho 3= 9 /*e)/n6ll: alias ls=:e$ho %;egmentation (a6lt%: 4.8

I'm sure you'd be able to find more creative variants of

"/.bashr$

pranks.
community wiki Alex B

answered Aug 11 '10 at 7:31

Not necessarily UNIX-specific, but I like modifying the


>?@.A.A.> >?@.A.A.> >?@.A.A.> google.$om slash*ot.org B6estionable$ontent.net

/et$/hosts

file:

et cetera, and then setting up Apache with an this page.

4rrorDo$6ment CAC $li$k_har*er.html

pointing to

answered Aug 11 '10 at 10:50

community wiki Lucas Jones

I'm not sure sending them to an error page that says IE will work on a *nix user. xenoterracide Aug 12 '10 at 23:30 @xenoterracide: That's part of the prank. David Thornley Aug 13 '10 at 12:34

I've used this re-direction script prank inside my office to turn browser images upside down. You'd be amazed to see how people panic when they think they've acquired some type of virus. You can also use the prank to make images blurry (you choose the degree of blurriness), pretty funny when you don't overdo it -- people think their eyes are tired or the monitor is wonky.
answered Aug 11 '10 at 15:15 community wiki Dan

2 of 6

1/26/2014 12:43 AM

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

D'oh! Beat me to it :) Avery Payne Aug 12 '10 at 1:10 There is a verson of this in the chrome extention gallery too, easy to slide in somebodies computer when you sit down to browse. Caleb Oct 7 '10 at 11:47

...I'm not sure about harmless, but I once set my roommate's default runlevel to 6. That was an amusing afternoon (for me).
answered Aug 11 '10 at 7:42 community wiki Matt Simmons

Lol. Brilliant. :) Lucas Jones Aug 11 '10 at 10:45 Cruel and unusual. And oh so sweet. Caleb Oct 7 '10 at 11:46

Heres a harmless prank. You will be surprised how many people dont know about the tty stop character. So when your victim leaves his or her terminal, stop the terminal using Ctrl-S (thats what it generally is, stty -a would show you the key on that terminal). And then when the victim comes back, he or she will be trying hard to get the terminal back to life... And if you find someone who keeps leaving his terminal.... you are really in luck!
answered Aug 11 '10 at 14:44 community wiki execve

That's just evil. ;) I normally switch between using a Windows machine and often type 1-s when saving.. It's a pain when you accidently hit it when ssh'ing to a linux machine.. Patrick Oct 6 '10 at 8:01 For the record, you can return to normality by pressing Ctrl-C. badp Oct 6 '10 at 10:45 Aha, that's what happened to me! Thanks to @badp that I'm learning about 1trl-1 now! But wait, the answer there tells us to use 1trl-D . Which is correct? imz -- Ivan Zakharyaschev Apr 27 '11 at 12:32

1 1

My favorite is logging in to a nearby computer and playing cricket or frog sounds. While working away in Miami FL, I had my whole family, back in Oregon, searching for a frog in the garage.
answered Aug 11 '10 at 14:13 community wiki Stephen Jazdzewski

Back in school, in the CS lab (sun workstations at the time) I compiled mpg123 from source in my home directory (that was fun) and then whenever anyone would walk out of the lab (w/out locking their workstation), I would modify their .cshrc (the workstations default shell) to play "Imagine" by John Lennon whenever they logged in. It amused me to no end hearing that song, playing ever so quietly (the workstations only had internal speakers) from all over the lab any time of day or night that I walked in.
answered Aug 11 '10 at 14:38 community wiki gabe.

alias $*=%eEe$t -0%

In

"/.3FshellGr$

e$ho %sleep >% 99"/.3FshellGr$

Such fun :)
edited Jan 20 '12 at 13:49 community wiki 2 revs, 2 users 86% Blue Peppers

3 of 6

1/26/2014 12:43 AM

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

One I really like is to alias ls="sl" (requires sl installed, which may or may not be a problem). For those not in the know, sl is a program that, being a common typo of ls, was created to train you out of typing sl. It displays a rolling choo choo train, that you can't break out of with C-c or C-d (unless -e is passed). You can even make it do different things with some parameters. Per sl(6):
.,0I.2; -a -l -8 -e An a$$i*ent seems to happen. #o6:ll (eel pity (or people who $ry (or help. shows little one. It (lies. Allow interr6pt by 1trlH1.

I don't recommend using -e if you're going to mess with your coworkers, but the rest have some serious laugh potential.
answered Aug 11 '10 at 15:24 community wiki B.R.

Back in the days of terminal-only systems, I created a program that simulated the login program but just kept saying, "Login incorrect". I then set it running on a colleague's terminal while he was at lunch. When he came back, he got really confused and panicked wondering if his password had changed or something, and actually called me over to ask me to help him with the problem. I started to make all sorts of plausible-sounding but useless suggestions for things he might try, and was able to get away with sounding completely innocent for several minutes, until finally he smelled a rat when I ran out of reasonable suggestions and started saying some truly outlandish things! We then had a good laugh over it together.
answered Sep 10 '10 at 22:08 community wiki Neil Mayhew

This one works great on Windows, but can be applied to KDE or Gnome as well: 1. Open some programs, just so it looks like a normal work session 2. Make a screenshot of the whole desktop with all apps running 3. Set all panels (or under windows the start bar) to hidden 4. Move all Desktop icons to a folder outside the desktop 5. Set the screenshot as desktop background image It will look as if the computer completely hangs, however in fact it is working perfectly well. If you are especially mean, you might have in the screenshot a Firefox window with a tillating or embarrassing web site. (Don't do this in the office.)
answered Oct 5 '10 at 18:05 community wiki fschmitt

Way back when I was in university, working late night on a project on a Unix terminal (just a tty, not X Windows), all of a sudden messages like "Are you hungry?" "Why are you still working?" "Deadline is tomorrow, just give up & go to sleep!" started appearing on my screen. Turns out a buddy was across the room, $at 'ing or e$ho 'ing to my terminal's device ( /*e)/pts/7whate)er9 ) -- the messages showed up directly on my terminal, without any kind of attribution (unlike write or wall ). These days systems are more locked down, I doubt it's as easy to find writeable terminal devices. Unfortunately this was many many years ago, so I haven't tried it in a long time, maybe there is a different way to do it now.
edited Aug 11 '10 at 15:16 community wiki 2 revs Dan

4 of 6

1/26/2014 12:43 AM

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

This actually works fine nowadays still :D badp Oct 6 '10 at 10:48

For emacs users, there's the nefariously evil broken-keyboard.el which makes the victim think their keyboard has weird problems.
answered Aug 12 '10 at 0:49 community wiki durin42

Add to .inputrc:
%nano%I %)i% %)i%I %ema$s% %$*%I %ls%

answered Jan 20 '12 at 11:11

community wiki grawity

This one guy came up with a list of aliases that could be put in .bashrc when interviewing someone for a linux/unix sysadmin job position. I'll post the full list of aliases here, but if you wish you can read the full article here. I find it to be quite funny..
,;>=%yo6AreHere/ % e+port ,;> alias --=:-: alias ash=:e$ho yo6AreHere/ : alias bash=:e$ho yo6AreHere/ : alias $at=:perl -l: alias $*=:$* .: alias $p=:e$ho $p: alias $sh=:e$ho yo6AreHere/ : alias *(=:e$ho /*e)/*6mp >AAJ >AAJ AJ /tmp/Eail(s/hoosegow/yo6: alias e$ho=:e$ho : alias ema$s=:e*: alias en)=:)mstat: alias e+=:e*: alias e+e$=:e$ho $annot (ork: alias e+it=:e$ho are yo6 s6re': alias i*=:e$ho 6ser\(me\) gro6p\(sa*ly the same\): alias Eoe=:e*: alias Esh=:e$ho yo6AreHere/ : alias kill=:e$ho all *ea*: alias ksh=:e$ho yo6AreHere/ : alias less=:more ---+: alias logo6t=:e$ho are yo6 s6re': alias ls=:e$ho .: alias mk*ir=:e$ho making *ire$tory: alias more=:less 7/*e)/n6ll: alias m)=:e$ho stay: alias netstat=:$at /*e)/ran*om: alias ping=:ping /*e)/n6ll: alias prompt=:e$ho yo6AreHere/: alias ps=:e$ho yo6 KA> KA> A Apr > ' AIAA /6sr/bin/)i$ks -)apor6b: alias pw*=:e$ho yo6 are here: alias rm=:e$ho $an\:\::t (in*: alias rm*ir=:remo)ing *ire$tory: alias set=:iostat: alias sh=:e$ho yo6AreHere/ : alias s6=:e$ho $annot s6 to: alias s6*o=:e+e$: alias to6$h=:e$ho please *on\:\::t to6$h: alias 6nalias=:e$ho no aliases (o6n* name*: alias )i=:e*: alias )im=:e*: alias w=:e$ho +5 y an* L: alias who=:e$ho what': alias Lsh=:e$ho yo6AreHere/ : M alias alias=%sleep K% M Nn$ommenting that last line is optional O)

5 of 6

1/26/2014 12:43 AM

humor - Unix & Linux pranks - Unix & Linux Stack Exchange

http://unix.stackexchange.com/questions/232/unix-linux-pranks

answered Jan 20 '12 at 12:53

community wiki pootzko

Most remembered prank that I ever played on others were two, while I was studying. 1. Wrote a s6 wrapper which would ask for user's password and stash them into a writeable file for me and then proceed to normal s6 . At the end, I would have all the collection of user's password in the network and used to somehow tease them with whatever the user's password would refer to symbolically intimating them that I am aware of their passwords. It was fun though :-)) 2. I deployed a cgi script on a http instance that would in disguise, collect user's password saying that the authentication is by system and they would happily share their passwords to cgi script which would store them in a text file. Had a nice fun, both related to password trickery. I would not encourage this now. As I am now in the shoes of System Administrator and strictly discourage people sharing their passwords not even on web. If doubtful, contact SysAdm for legitimacy of the site in the local network.
answered Jan 20 '12 at 14:09 community wiki Nikhil Mulley

set DISPLAY variable to their PC name/IP. open debug (wdb) windows to someones PC and they are confused whats happing. Of course their PC should have xwin running and xhost +.
answered Aug 11 '10 at 6:13 community wiki Hemant

Works for X11 displays, if you can get to it, with "shortcuts" on the desktop: 1. Add a folder on the desktop, call it "Horse porn". 2. Use GIMP to take a screen shop of the whole desktop. 3. Set the screen shot you took in step two as the wallpaper. 4. Delete the "Horse porn" folder. You should still see the folder as it is part of the screen shot set as a wallpaper. 5. Get stop watch and see how long it takes $user to work it out. Works on Windows(TM) too.
answered Jan 20 '12 at 11:31 community wiki Sardathrion

I()F I|I< GI

//at yo6r terminal (ork

Warning: Its a

bomb! But you should try it once ; )

A fork bomb is a process that clones (forks) itself, the clone then does the same, and those clones do the same, etc etc. It grows exponentially until all system resources are consumed, and the system hangs. It's a real nasty piece of work, and not a prank by any means.
edited Aug 12 '10 at 14:51 community wiki 2 revs, 2 users 57% N 1.1

6 2

THIS IS NOT HARMLESS AND BREAKS THINGS! wzzrd Aug 12 '10 at 10:11 This is a good use for Virtualization. Get a guest running on your KVM/Virtualbox instance, and try this-- you can always reboot. It's an educational opportunity. Stefan Lasiewski Aug 12 '10 at 18:18 Oh, there's ways to make this attack harmless... But the fix is worse than the cure. :( Arafangion Oct 5 '10 at 14:20 How does it work? Kevin Cantu Oct 5 '10 at 18:21

Ahhh, even Bash allows I as a function name. Although I()F I|I< GOI seems necessary... Kevin Cantu Oct 5 '10 at 18:47

6 of 6

1/26/2014 12:43 AM

Potrebbero piacerti anche