Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
11  
Voting for close as cruft. – Adam Davis May 8 '09 at 20:55
34  
Voting to close you as cruft. – chaos May 8 '09 at 20:59
10  
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
9  
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

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

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

22 Answers

up vote 53 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
share|improve this answer
find / -user you -iname '*base*' -exec chown us:us {} \;
share|improve this answer
 $ man woman
 No manual entry for woman
share|improve this answer

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.
share|improve this answer
% man: why did you get a divorce?
man:: Too many arguments.
share|improve this answer

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 ^
share|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
$ PATH=pretending! /usr/bin/which sense
/usr/bin/which: no sense in (pretending!)
share|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
> apt-get moo
         (__) 
         (oo) 
   /------\/ 
  / |    ||   
 *  /\---/\ 
    ~~   ~~   
...."Have you mooed today?"...
share|improve this answer
Haah! I never knew about this one! =) – Xerxes May 28 '09 at 16:18
% How's my sexual technique?
Unmatched '.
share|improve this answer
% cat "food in cans"
cat: can't open food in cans
share|improve this answer
1  
cat: food in cans: No such file or directory – Osama ALASSIRY May 11 '09 at 16:02

Not Unix but SQL;

SELECT * FROM MANAGEMENT WHERE CLUE>0
0 ROWS RETURNED

share|improve this answer
% scan for <<"Arnold Schwarzenegger"
"Arnold Schwarzenegger": << terminator not found
share|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

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
share|improve this answer
Oh, well done indeed. – chaos Jun 29 '09 at 19:48
% If I had a ( for every $ the Congress spent, what would I have?
Too many ('s.
share|improve this answer
fuser

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

share|improve this answer

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

rm -rf /bin/laden
share|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

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
share|improve this answer
$ who mom likes

rich
share|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
$ 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.

share|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

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.

share|improve this answer
2  
I think you should examine the second-most-upvoted answer more closely. :) – chaos May 15 '09 at 4:53
stop@hammertime:~> touch /this
touch: cannot touch "/this": Permission denied
share|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

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