Skip to Content

Top Terminal easter eggs

Yeah, the headline makes it sound like the eggs are on their deathbed. But no, easter eggs (in software jargon) are little presents or surprises that developers have slipped into an application or operating system. One excellent place to find easter eggs in Mac OS X is in the Terminal.

Now technically, these easter eggs aren't part of Mac OS X. The Terminal app is a portal into the UNIX underpinnings of Mac OS X. You can find the Terminal app in the Applications > Utilities folder. Here are four of my favorites:

1. Important dates in history -- Lord of the Rings style

At the Terminal prompt paste the following: cat /usr/share/calendar/calendar.history and press return. You'll get a list of famous dates throughout the centuries -- including some that take place in Middle Earth.

2. Snake Game

At the Terminal prompt type in emacs, then press enter. You'll see a bunch of text come up. Once it does hold down the ESC key and press X. If you timed your presses right, you'll notice the cursor has moved to the bottom of the page next to the letters M-x. Now type in snake and enjoy!

3. Tetris

Follow the same steps as for the Snake game. At the Terminal prompt type in emacs, then press enter. You'll see a bunch of text come up. Once it does hold down the ESC key and press X. If you timed your presses right, you'll notice the cursor has moved to the bottom of the page next to the letters M-x. This time, type in tetris. Use the arrow keys to move and rotate the blocks, and press the space to make the blocks fall.

4. Emacs psychoanalysis


Like the previous two, this last easter egg is an extension of the emacs UNIX command. At the Terminal prompt type in emacs, then press enter. You'll see a bunch of text come up. Once it does hold down the ESC key and press X. If you timed your presses right, you'll notice the cursor has moved to the bottom of the page next to the letters M-x. This time, type in psychoanalyze-pinhead. You'll get a speedy conversation between two doctors. Press Ctrl-G to stop the conversation and then read the transcript.

All these easter egg tips were taken from The Easter Egg Archive which lists Easter eggs found in movies, TV, books, art, music, and software. Check out the site for many more Mac easter eggs and please post any that you know of in the comments!

[Binary egg photo by Rakka]

Categories

UNIX / BSD

Yeah, the headline makes it sound like the eggs are on their deathbed. But no, easter eggs (in software jargon) are little presents or...
 

Add a Comment

*0 / 3000 Character Maximum

19 Comments

Filter by:
James Dehnert

The pinhead in psychoanalyze-pinhead is the one and only Zippy the Pinhead. The program uses the doctor program to analyze Zippy the pinhead.

The doctor command is an implementation of the famous ELIZA program, originally written by Joseph Weizenbaum at MIT in 1966. It uses simple pattern recognition to mimic a Rogerian psychiatrist. You can interact with that one directly using the doctor command in emacs, if you think you can use the help.

I believe that there is also just a pinhead app called yow as well, and psychoanalyze-pinhead just ties doctor and yow together.

April 05 2010 at 3:54 PM Report abuse rate up rate down Reply
cclawson

Wow. Such vitriol.

While they may not technically be Easter eggs, a lot of people don't know about them and so for all intents and purposes are Easter eggs to them. I am included in that number and happened to find the post entertaining.

April 05 2010 at 2:42 AM Report abuse rate up rate down Reply
Dannel

I'm going to chime in with the rest of the people who are right about this post. I would go one more step to request that you change the title of the post to accurately reflect its content. Sure, "1 UNIX calendar and 3 emacs easter eggs" doesn't roll off the tongue as nicely, but at least it will be correct.

I'm actually surprised, nay...shocked that this even made it past the editors/moderators, has no one on staff been using UNIX? no one?

tl;dr I expect better from you TUAW, this kind of poor fact-checking is lousy reporting or information gathering at best.

April 05 2010 at 2:18 AM Report abuse rate up rate down Reply
1 reply to Dannel's comment
colouroflight

Would you expect accuracy on an actual technical topic from TUAW? Their minds are too clouded with iPad hysteria.

April 05 2010 at 9:51 AM Report abuse rate up rate down Reply
AHinMaine

Please tell me you aren't this stupid. Calling any of these "Terminal" easter eggs is akin to calling an easter egg found on, say, google, a "web browser" easter egg. Terminal has nothing to do with any of these.

Sorry for the venom. It stems from it just rubbing me the wrong way when the idiots in the tech support department at my company can't ssh into a server and they start to complain that "putty" is down.

April 04 2010 at 8:47 PM Report abuse rate up rate down Reply
Jan I

psychoanalyze-pinhead isn't "a speedy conversation between two doctors". It's a speedy conversation between an imaginary "pinhead" (you know, person with virtually NO brains) and the "doctor", which is based on the classic program ELIZA. (http://en.wikipedia.org/wiki/ELIZA)

Kids today just don't know computer history and think nothing happened before 2005. Really.

April 04 2010 at 2:48 PM Report abuse rate up rate down Reply
Alexey Vyskubov

By the way, the binary code on the egg photo reads 'easter egg'.

April 04 2010 at 2:35 PM Report abuse rate up rate down Reply
Alexey Vyskubov

Those are not even remotely related to 'easter eggs'. The author just mentioned the file used by the 'calendar' terminal program, which is a part of BSD core (try calendar -f /usr/share/calendar/calendar.all -A 2, for example) and few things bundled with emacs text editor.

April 04 2010 at 2:34 PM Report abuse rate up rate down Reply
rollthebones

The first one (dates in history) isn't a Terminal easter egg. It's just a text file you're opening with the 'cat' command.

April 04 2010 at 1:21 PM Report abuse rate up rate down Reply
Kyle Bandy

For the psychoanalyze one to occur properly, simply type in "doctor" in the emacs thing. Then you can type in your own responses to the doctor.

April 04 2010 at 12:27 PM Report abuse rate up rate down Reply
Doubting Thomas

Plus, "if you timed your presses right"? What's that about? Just hit , then X. You can't really time them *wrong*.

April 04 2010 at 12:14 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.