Harry Potter and the Root Password
Posted by: Rea Maor In: Linux and Unix - Sunday, July 22nd, 2007With the latest Harry Potter book out and all the online fuss about it – somebody got a copy and leaked it online – I thought that now would be a good time to point out that the Harry Potter universe is nothing but a metaphor for Unix hacking.
Sure it is! Consider:
- Magic is nothing but hacking. It’s all a matter of knowing the right spell – particularly with Unix commands!
- Wands are just program shells.
- Potions are compiled C programs. A lot of magic compacted into a small container to be used later.
- The Hogwart’s Marauder’s map is nothing but the Unix ‘ps’ command. ‘Ps’, done with switches such as “aux”, will show every running process and who’s running it.
- The Avada Kedavra spell is the kill -9 command. Other unforgivable curses are just heavy-damage commands.
- The Obliviate spell is the equal to ‘rm -rf ./*’.
- The Pack spell is the ‘tar -cf ‘ command.
- The Accio spell is ‘apt-get’.
- The Imperio curse is the ‘sudo’ command.
- The houses are just user groups.
- The Hogwarts Express is a ssh session. At least when entered from platform 9 3/4.
- Lord Voldemort is, of course, a black-hat hacker.
- Hogwarts staff members are system admins. They range from the relatively benevolent wizard Dumbledore to the BOFH nature of Severus Snape.
- Hogsmeade is the Blogosphere.
- The owls are the email network. Note that they continue to resend packets as long as they keep getting dropped, and they can even spam a message!
- The house-elves are daemon processes. They’re always working invisibly in the background.
- The Floo Network is the Internet. Complete with an administrative body and special equipment which must be connected to function.
- Muggles are… users! Or more correctly, “lusers”, as a system admin would put it.
- An animagus is just a trojan virus. They can change their appearance to appear innocent while the infiltrate the system.
What? I could go on and on… and before you all start emailing it to each other, I think if we put our heads together in the comments we could complete the list. This was just off the top…
Popularity: 3% [?]
Related Posts:
- Google and the Concept of a Landing Page
- The Awk Programming Language
- Search Engine Study – part 1: Search Engines Defined
- What Your Linux Distro Says About You
- iPhone death – sooner than predicted.







July 23rd, 2007 at 12:55
That’s pretty funny! Great post!
July 23rd, 2007 at 13:14
Thank you
July 31st, 2007 at 3:00
Very right said
, loved that post
August 20th, 2007 at 10:38
[...] – What Your Web-Browser Says About You – part 1 – What Your Web-Browser Says About You – part 2 – Harry Potter and the Root Password – And many more (related to Linux and [...]
August 21st, 2007 at 14:23
A remembrall is just a cron job. It remembers what you forget to do.
The text books are just bin and sbin dirs. Almost everything you’ll ever need to know how to cast is there.
School trunks are like iPods. They carry everything you really care about.
A pensieve is like a DVD drive. You dump large or important stuff in a small-format storage device and play it back when you want.
The Ministry is just the kernel. Dictating how things happen but not doing much by itself.
The department of mysteries is the dev community. Nobody really knows what’s going on until it comes out.
September 16th, 2008 at 14:44
Prior Incantato: It’s a history in every wandXD
Sectum Sempra: It’s Just a Wipe command
Colloportus: Encryptation
Engorgio: unzip, unrar, tar -zxvf , etc XD
Evanesco: rm -rf
Geminio: cp
Homenum Revelio: who
Legilimens: Sniffing?
Protego Horribilis: iptables -A INPUT -p tcp -j DROP
February 14th, 2009 at 1:32
Horcruxes are back doors.
Diagon Alley is Matt’s Perl Script Archive.
The Forbidden Forest is USENET.