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]
Share
Source: http://www.eeggs.com/
Categories
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
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.
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.
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.
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 Permalink rate up rate down ReplyPlease 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.
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.
By the way, the binary code on the egg photo reads 'easter egg'.
April 04 2010 at 2:35 PM Report abuse Permalink rate up rate down ReplyThose 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 Permalink rate up rate down ReplyThe 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 Permalink rate up rate down ReplyFor 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 Permalink rate up rate down ReplyPlus, "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 Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



19 Comments