What is your favorite joke or cultural reference expressed as a Unix command line?

link|improve this question
11  
Voting for close as cruft. – Adam Davis May 8 '09 at 20:55
32  
Voting to close you as cruft. – chaos May 8 '09 at 20:59
9  
I appreciate your asking politely. No. – chaos May 9 '09 at 16:26
7  
Personally, I'd vote to close if I had the rep, but whatever. But offering a bounty? WTF? – Graeme Perrow May 11 '09 at 0:04
8  
Guys, don't take yourselves so seriously. If he wants to spend his bounty like that then let him enjoy it. If you've earned enough rep to offer a bounty then I reckon you deserve some slack. It's fine with me. – Tim Long May 12 '09 at 16:25
show 9 more comments
feedback

closed as not constructive by sysadmin1138 Sep 5 '11 at 19:10

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

22 Answers

up vote 54 down vote accepted
+100

No one posted this yet?

wine; talk; touch; unzip; touch; strip; gasp; finger; gasp; mount; fsck; more; yes; gasp; umount; make clean; sleep
link|improve this answer
feedback
find / -user you -iname '*base*' -exec chown us:us {} \;
link|improve this answer
feedback
 $ man woman
 No manual entry for woman
link|improve this answer
feedback

Hmmm I really doubt this counts but I enjoy it:

< > ! * ' ' #
^ " ` $ $ -
! * = @ $ _
% * < > ~ # 4
& [ ] . . /
| { , , SYSTEM HALTED

The poem can only be appreciated by reading it aloud, to wit:

<  >  !   *  '  '  #
Waka waka bang splat tick tick hash,
^  "    `    $   $  -
Caret quote back-tick dollar dollar dash,
!  *  =  @  $    _
Bang splat equal at dollar under-score,
%   *   <  >  ~   #   4
Percent splat waka waka tilde number four,
&     [    ]   . .  /
Ampersand bracket bracket dot dot slash,
|       {      ,    ,   SYSTEM HALTED
Vertical-bar curly-bracket comma comma CRASH.
link|improve this answer
feedback
% man: why did you get a divorce?
man:: Too many arguments.
link|improve this answer
feedback

I remember a few from my unix days back at uni (nearly 20 years ago):

% got a light?
No match.

and

^Where is Jimmy Hoffa
Missing ^
link|improve this answer
Unfortunately (?), bash's error messages have improved over the past twenty years, and neither of these are reproducible on my prompt (OS X Leopard), but they're still quite amusing. – Chris Lutz May 9 '09 at 7:32
2  
The 'got a light?' is specific to csh/tcsh (they say got: No match. now, but close enough). ksh gives a passable result for '^Where is Jimmy Hoffa': 'ksh: ^Where: not found [No such file or directory]'. – chaos May 9 '09 at 7:57
lol I see Alnitak changed my prompt. Shows how much I know about unix, really. All I remember is vi keyboard commands and funny messages! :) – Matt Hamilton May 9 '09 at 8:27
@Matt - it's not fixed, but conventionally (t)csh uses % and sh derivatives use '$' – Alnitak May 9 '09 at 13:12
feedback
$ PATH=pretending! /usr/bin/which sense
/usr/bin/which: no sense in (pretending!)
link|improve this answer
Aw, my which doesn't actually do that. It just gives an error return code. – Matthew Flaschen May 9 '09 at 19:12
feedback
% How's my sexual technique?
Unmatched '.
link|improve this answer
feedback
> apt-get moo
         (__) 
         (oo) 
   /------\/ 
  / |    ||   
 *  /\---/\ 
    ~~   ~~   
...."Have you mooed today?"...
link|improve this answer
Haah! I never knew about this one! =) – Xerxes May 28 '09 at 16:18
feedback
% cat "food in cans"
cat: can't open food in cans
link|improve this answer
cat: food in cans: No such file or directory – Osama ALASSIRY May 11 '09 at 16:02
feedback

Not Unix but SQL;

SELECT * FROM MANAGEMENT WHERE CLUE>0
0 ROWS RETURNED

link|improve this answer
feedback
% scan for <<"Arnold Schwarzenegger"
"Arnold Schwarzenegger": << terminator not found
link|improve this answer
1  
Love that one, but it doesn't seem to work on a current csh or tcsh. :( – chaos May 13 '09 at 2:24
2  
Here's a nearly adequate substitute, though: perl -e 'scan for <<"Arnold Schwarzenegger"' – chaos May 14 '09 at 21:09
feedback

What, nobody has mentioned sudo make me a sandwich?!!

link|improve this answer
feedback

I can't believe no one added this classic:

$ %blow
bash: fg: %blow: no such job

And my "implementation" of the popular xkcd comic:

$ make -me sandwich
Make it yourself
$ sudo make -me sandwich
Okay.

And the Makefile:

ifeq ($(shell id -u), 0)
sandwich:
    @echo "Okay."
else
sandwich:
    @echo "Make it yourself"
endif
link|improve this answer
Oh, well done indeed. – chaos Jun 29 '09 at 19:48
feedback
% If I had a ( for every $ the Congress spent, what would I have?
Too many ('s.
link|improve this answer
feedback
fuser

If only this was the way you removed users from the system. ;-)

link|improve this answer
feedback

This was making the rounds in the NYC nerd community in Oct of 2001:

rm -rf /bin/laden
link|improve this answer
My father once set something along these lines as a networking exam question. He was very proud of himself for it. – Margaret Jul 8 '09 at 14:10
feedback

Christmas?

better !pout !cry
better watchout
lpr why
santa claus <north pole >town
cat /etc/passwd >list
ncheck list
ncheck list
cat list | grep naughty >nogiftlist
cat list | grep nice >giftlist
santa claus <north pole > town

who | grep sleeping
who | grep awake
who | grep bad || good
for (goodness sake) {be good}

echo "Oh,"

better !pout !cry
better watchout
lpr why
santa claus <north pole >town
link|improve this answer
feedback
$ who mom likes

rich
link|improve this answer
1  
I don't get that output. Is it based on specific system stuff? – Lucas McCoy May 11 '09 at 1:50
2  
On a Debian install, from 'man who': "If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. If ARG1 ARG2 given, -m presumed: ‘am i’ or ‘mom likes’ are usual." -m shows the hostname and user associated with stdin. So any 'who foo bar' will show the current logged in user. – chaos May 11 '09 at 3:57
Awesome. Alas, OS X's version of 'who' doesn't support such silly behavior. – Chris Lutz May 11 '09 at 15:49
feedback
$ make love
make: Don't know how to make love. Stop

Though this is sadly unsupported by GNU Make ('No rule to make target 'love'? Weak!), you can overcome this limitation by installing a BSD make (apt-get install pmake works nicely where applicable) and using it.

link|improve this answer
2  
Better is the old version that said "not war," but maybe I'm just a filthy hippie. – Chris Lutz May 12 '09 at 23:49
On FreeBSD 7.2 $make love returns "not war" you filthy hippie – Chance Aug 12 '09 at 21:18
feedback

This one is a bit more internet-humor-related, but I always loved

chown -R us ./base

As a reference to the "All your base" phenomenon.

link|improve this answer
2  
I think you should examine the second-most-upvoted answer more closely. :) – chaos May 15 '09 at 4:53
feedback
stop@hammertime:~> touch /this
touch: cannot touch "/this": Permission denied
link|improve this answer
touch /this gives me no output, but also doesn't touch anything. !!(debian armel, android kernel, is there something wrong?). – Behrooz Apr 23 '11 at 11:57
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.