Skip to Content
Navigation:
Cover for The Secret Rules of the Terminal

The Secret Rules of the Terminal

The terminal seems simple at first (you type in commands and run them! no big deal!), but the more you learn, the more you notice a million little inconsistencies (why does pressing the arrow keys sometimes print out "^[[D"? why does selecting text sometimes not work? why are the colours sometimes unreadable?) that make it feel like an inscrutable black box. And it often doesn’t feel worth it to learn more because documentation about the terminal is so fragmented and full of obscure jargon.

But! Understanding just a little more about the terminal can make your experience WAY better. You can quickly recognize what’s causing a problem (“oh, my arrow keys aren’t working because this is one of those annoying REPLs that doesn’t support arrow keys!”) and immediately fix it (“I’ll use rlwrap!). Or you can turn “wow, this text is unreadable” into “oh, my terminal emulator is responsible for colours! I’ll just go into the settings and reconfigure my colours!”.

In this zine, we’ll help you become a terminal wizard by:

  • explaining the structure of the terminal (the shell! the terminal emulator! individual programs!) and who’s responsible for what
  • sharing a million little tips and tricks that I’ve learned over the years, like how you can basically always use Ctrl+W to delete the last word

I want this!

Credits!

  • Cover art by Vladimir Kašiković
  • Technical review by Simon Tatham
  • Pairing: Marie Claire LeBlanc Flanagan
  • Copy Editing by Lesley Trites
  • and thanks to all 95 beta readers <3

Commonly asked questions:

what's a zine?

According to Wikipedia:

A fanzine (blend of fan and magazine or -zine) is a non-professional and non-official publication produced by enthusiasts of a particular cultural phenomenon (such as a literary or musical genre) for the pleasure of others who share their interest.

The zines on this site are usually about 20 pages, and they’re full of short, informative, and fun comics which will quickly teach you something useful.

who are these zines for?

They’re aimed at working programmers, like me! The idea is that you’re busy, you want to know how to use some computer thing, and the man page makes your head hurt.

is the PDF version printable?

Yes! The PDF version of the zine includes special PDFs designed to be easy printable on a home printer. Print it out, staple it, fold it, read it, and then give it to a friend! It turns out it’s way easier to convince your friends to read a physical thing that is in front of them.

They all have black & white version to make sure they print well if you only have a black & white printer.

Table of Contents:

Take a peek inside:

© Julia Evans 2025 | All rights reserved (see the FAQ for notes about licensing)