Processes Tab¶
The Processes tab (tab 2) displays a sortable, interactive table of running processes, similar to htop.
Table columns¶
| Column | Description |
|---|---|
| PID | Process ID |
| Name | Process name (from /proc/[pid]/comm) |
| CPU% | CPU usage percentage |
| MEM | Resident set size (RSS) in human-readable format |
| User | Owner of the process |
Navigation¶
| Key | Action |
|---|---|
j or Down |
Move selection down |
k or Up |
Move selection up |
s |
Cycle sort column |
K |
Kill selected process |
The selected row is highlighted with a background color matching the current theme.
Sorting¶
Press s to cycle through sort columns:
- CPU% (descending) -- default sort
- MEM (descending)
- PID (ascending)
- Name (alphabetical)
- User (alphabetical)
The active sort column is indicated in the table header.
Killing a process¶
- Navigate to the target process using
j/kor arrow keys - Press
K(uppercase) - A confirmation prompt appears showing the PID and process name
- Press
yto confirm (sends SIGTERM) orn/Escto cancel
Warning
Killing system processes may cause instability. The kill operation sends SIGTERM (signal 15), which allows the process to clean up. If the kill fails (e.g., insufficient permissions), an error message is displayed.
After a kill attempt, the result message is shown briefly and clears on the next keypress.
Data collection¶
Process data is parsed from /proc/[pid]/ directories:
/proc/[pid]/stat-- CPU usage, state/proc/[pid]/status-- memory (VmRSS), user/proc/[pid]/comm-- process name
Lazy refresh
Process data is only collected when the Processes tab is active. This reduces CPU and I/O overhead when viewing other tabs, which is especially important on lower-powered boards like the Pi Zero 2W.