Harry Potter and the Root Password

Posted by: Rea Maor In: Linux and Unix - Sunday, July 22nd, 2007

With 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:


7 Responses to “Harry Potter and the Root Password”

  1. Hebi-kai Says:

    That’s pretty funny! Great post!

  2. Rea Maor Says:

    Thank you :)

  3. Photoshtop Tutorials Says:

    Very right said :mrgreen: , loved that post

  4. What Your Linux Distro Says About You | Geeks and Technology - Linux Windows Unix system and Making money online Says:

    [...] – 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 [...]

  5. gryyphyn Says:

    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.

  6. AshtarotH Says:

    Prior Incantato: It’s a history in every wandXD

    Sectum Sempra: It’s Just a Wipe command :P

    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

  7. Brian Garrett Says:

    Horcruxes are back doors.

    Diagon Alley is Matt’s Perl Script Archive.

    The Forbidden Forest is USENET.

Leave a Reply