btop for Mere Mortals
A computer is always doing more than you can see: dozens or hundreds of programs (processes) share the processor, the memory, the disks and the network, and most of the time they share politely. Then the machine slows down, the fan spins up, a download crawls — and the question is always the same: what is using what, right now? btop answers it on one terminal screen: graphs for the processor, bars for the memory, speeds for the network, and a live list of every process, which you can sort, filter, and — when one has run away with the machine — stop, with a confirmation that makes you read its name and number first.
This guide explains how to read that screen box by box, how to find the one process you care about among hundreds, how to send it a signal safely, and how to shape btop itself: its menus, its saved layouts (presets), its themes, and the plain-text configuration file underneath it all. The limits are stated plainly too, including the ones the lab met personally: settings that vanish when the program dies instead of quitting, and a layout that quietly becomes your new default if you quit while admiring it.
The lab behind this guide ran the real thing: btop 1.4.8, the official static build from the project's GitHub releases, on a small Linux machine (2 processor cores, about 8 GB of memory). Against it the lab ran its own cast of test processes — a busy loop that burned processor time, a sleeper that did nothing for fifteen minutes, a program that held 200 MB of memory — so every screen in this guide shows real numbers from a machine doing known things. The lab sorted the process list by processor and by memory, filtered it down to a single named process, opened the menus, the options and the built-in help, changed a theme and a configuration setting and proved both on a relaunch, cycled through the preset layouts, and stopped its own runaway process from inside btop, checking afterwards with a second tool that the process was really gone.
What the lab could not do, it did not
fake. Its machine is a container with no
graphics processor and no ordinary disk
mounts, so the graphics (GPU) box and
the disk list are described from the
documentation and labelled as such
wherever they appear, and the empty
disks box in the lab's own screenshots
is explained rather than airbrushed.
criteria.md keeps the full ledger of
what was run and what was only read.
What this guide covers
- What btop is — the mental model: one screen, four boxes, and the question each box answers
- Installing btop — the package manager and release routes, the version check, and what the first run writes to your home folder
- Reading the screen — the processor, memory, network and process boxes read closely, with the lab's loaded machine as the specimen
- Finding the process — sorting by any column, filtering by name, the tree view that shows who started whom, and one process examined in detail
- Acting on a process — terminate, kill, and other signals, the confirmation popup, and the discipline of reading it before you press Yes
- Menus, options and help — the main menu, the five options tabs, and the two-page help screen that lists every key
- Presets and layout — saved arrangements of the boxes, the number keys that toggle them, and the preset that becomes your default if you quit while it is on screen
- The config file —
~/.config/btop/btop.conf: when it is written, the settings that matter, and changing one by hand, proven on a relaunch - Recipes — the runaway process, the memory hog, the slow download, and the small-terminal sitting
- Limits — a live view keeps no history, the graphics box depends on your build, containers hide their disks, and other honest edges
- Troubleshooting — settings lost in a crash, keys that seem ignored, an empty disks box, and the short theme list, all met by this guide's lab so you can recognise them
- Glossary — the terms, collected in one place
What it doesn't cover
btop watches one machine: the one it is running on. Watching a whole fleet, keeping graphs from last week, and alerting you at 3 a.m. are other tools' work (the Watching Your System and Prometheus and Grafana guides in this series point that way). Tuning the machine itself — nice levels as a policy, processor governors, memory swapping strategy — is pointed at, not taught. And btop with administrator rights can stop any process, including ones the machine needs; chapter 5 is about the care that deserves, and this guide's lab only ever signalled its own test processes.
How to use this guide
Read chapter 1 for the model, then install (chapter 2) and take chapter 3's tour of the screen while your own btop is running — the boxes make sense when you can watch them move. Chapter 4 is the everyday skill: coming out of a crowd of processes with the one you wanted. Read chapter 5 before you stop anything you did not start yourself. Chapters 6 to 8 are the shaping: menus first, then presets, then the file that remembers it all — and chapter 8's warning about when that file is written is worth the whole chapter.
Part of the series
This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.
Related guides:
License
The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.