README: document the 60 monitor utilities (251-310)

Table extended 250 -> 310 rows (new Slices K-M), one worked
subsection per new monitor, all 60 examples verified in fresh
scratch dirs. Counts updated: 310 utilities, C 113 / Python 172 /
bash 25.
This commit is contained in:
fileutils committed 2026-12-04 04:37:01 +00:00
1 parent 62bf71a72e
commit 9687244418
1 file changed
+569 -6
+569 -6
View File
@@ -1,6 +1,6 @@
# fileutils — 250 creative utilities for Termux and Linux
# fileutils — 310 creative utilities for Termux and Linux
250 small, sharp command-line utilities: file organization, text tools,
310 small, sharp command-line utilities: file organization, text tools,
system and network monitors, disk tools, archives and converters,
Termux/Android helpers, converters and generators, dev helpers, and
a few just for fun. Every utility is a real working tool with a
@@ -14,7 +14,7 @@ cd util_box
make
```
`make` compiles the C/C++ utilities into `bin/` (53 of the 250).
`make` compiles the C/C++ utilities into `bin/` (113 of the 310).
The Python (172) and bash (25) utilities are scripts that run directly
— no build step is needed for them. Everything is standard library /
coreutils / POSIX only: no third-party packages, no GUI, no exotic
@@ -49,7 +49,7 @@ make # compile the C/C++ utilities into bin/
tests/run_all.sh # build, then run every --help and --selftest
```
The test runner builds first, then runs all 250 smoke tests in parallel
The test runner builds first, then runs all 310 smoke tests in parallel
(up to 8 concurrent, `&` + `wait`) with a 60 s timeout each, and reports
pass/fail per utility. It exits 0 only if the build and every test pass.
@@ -60,10 +60,11 @@ pass/fail per utility. It exits 0 only if the build and every test pass.
- `src/` — C/C++ sources, one per compiled utility
- `tests/run_all.sh` — the master test runner
- `IDEAS.md` — the de-duplicated idea list (250 entries)
- `IDEAS-60.md` — the second-wave idea list (60 monitor entries)
## Languages
- C: 53
- C: 113
- Python: 172
- bash: 25
@@ -103,7 +104,7 @@ tests/run_all.sh # build, then run every --help and --selftest
The quickest way to find the right tool is the tables below (one row per
utility) or the detailed [Utilities](#utilities) section at the end,
which has a worked example for every one of the 250.
which has a worked example for every one of the 310.
## Slice A — File organization & dedup (25)
@@ -405,6 +406,81 @@ which has a worked example for every one of the 250.
| 249 | `focus` | Python | focus session tracker: start/stop, log, daily total |
| 250 | `namegen` | Python | generate creative names for projects, pets, or bands from combinable word lists |
## Slice K — More monitors: temperature, CPU & memory (25)
| # | Name | Language | Description |
|---|------|----------|-------------|
| 251 | `tempgraph` | C | live CPU temperature sparkline over time |
| 252 | `coretemp` | C | per-core temperature table with mini sparklines |
| 253 | `gputemp` | C | GPU temperature graph |
| 254 | `temphist` | C | log temperatures and render history as an ASCII graph |
| 255 | `tempzones` | C | all thermal zones side-by-side with sparklines |
| 256 | `tempdelta` | C | temperature rate of change in degC/min per zone |
| 257 | `tempalarm` | C | alert when any temperature crosses a threshold |
| 258 | `tempfan` | C | temperature vs fan speed correlation plot |
| 259 | `tempthrottle` | C | detect thermal throttling from MHz drop + temperature |
| 260 | `tempdiff` | C | temperature before vs after running a command |
| 261 | `tempmax` | C | session high-water marks: max temperature per zone |
| 262 | `tempslope` | C | predict minutes to throttle from the current heating slope |
| 263 | `corebars` | C | per-core CPU usage bars, live, one line per core |
| 264 | `cpushare` | C | CPU time split user/system/iowait/idle as stacked bars |
| 265 | `cpusteal` | C | steal time monitor for VMs with history graph |
| 266 | `irqtop` | C | top interrupt consumers from /proc/interrupts and /proc/stat |
| 267 | `ctxwatch` | C | context switch rate monitor |
| 268 | `cpuidle` | C | per-core idle and C-state time monitor |
| 269 | `runq` | C | run queue length history graph |
| 270 | `cpuburst` | C | detect CPU bursts and log them with process attribution |
| 271 | `memleak` | C | watch a process RSS growth over time and flag leaks |
| 272 | `swaphist` | C | swap in/out history graph |
| 273 | `slabwatch` | C | slab allocator top consumers |
| 274 | `pagereclaim` | C | page reclaim and major fault rate monitor |
| 275 | `psigraph` | C | PSI (pressure stall information) graphs for CPU/memory/IO |
## Slice L — More monitors: disk, network & process (25)
| # | Name | Language | Description |
|---|------|----------|-------------|
| 276 | `hugewatch` | C | huge page usage monitor |
| 277 | `cachehit` | C | page cache hit ratio estimate monitor |
| 278 | `iolat` | C | per-disk IO latency histogram from /proc/diskstats deltas |
| 279 | `iodepth` | C | IO queue depth monitor |
| 280 | `diskrate` | C | per-disk read/write rate bars, live |
| 281 | `fswatch` | C | filesystem write volume per mount point |
| 282 | `ioproc` | C | top processes by IO with live delta rates |
| 283 | `diskbusy` | C | disk busy percentage per device graph |
| 284 | `trimwatch` | C | TRIM/discard activity monitor from /proc/diskstats |
| 285 | `netlat` | C | latency to multiple hosts graphed over time |
| 286 | `neterr` | C | interface error and drop counter monitor |
| 287 | `socktop` | C | top sockets by state (ESTABLISHED/TIME_WAIT counts) |
| 288 | `portflow` | C | per-port traffic rates (which local port is busy) |
| 289 | `dnswatch` | C | DNS query latency monitor with graph |
| 290 | `netqueue` | C | interface queue/backlog monitor (drops, qdisc) |
| 291 | `wifigraph` | C | WiFi signal strength graph over time |
| 292 | `netretrans` | C | TCP retransmit rate monitor |
| 293 | `procmem` | C | top processes by memory with tree grouping |
| 294 | `proccpu` | C | top processes by CPU with per-PID history sparklines |
| 295 | `procage` | C | longest-running processes with age and start time |
| 296 | `procstate` | C | process counts by state (R/S/D/Z/T) graphed over time |
| 297 | `procfork` | C | fork rate monitor (new processes per second) |
| 298 | `procrestart` | C | detect processes that restart frequently |
| 299 | `gpuload` | C | GPU utilization and memory graph |
| 300 | `gpuproc` | C | top processes by GPU memory |
## Slice M — More monitors: GPU, power & system (10)
| # | Name | Language | Description |
|---|------|----------|-------------|
| 301 | `gpupower` | C | GPU power draw graph |
| 302 | `batgraph` | C | battery charge/discharge graph over time |
| 303 | `wattwatch` | C | power draw estimate in watts |
| 304 | `suspendwatch` | C | suspend/resume event log monitor |
| 305 | `loadspike` | C | detect load spikes, log top processes at the moment |
| 306 | `bootchart` | C | boot time breakdown from dmesg/systemd timestamps |
| 307 | `kerneltop` | C | top kernel threads by CPU |
| 308 | `fdgraph` | C | open file descriptor count history graph per process |
| 309 | `lockwatch` | C | detect processes stuck in uninterruptible sleep (D-state) |
| 310 | `sysdash` | C | combined mini-dashboard: CPU, memory, disk, net, temp |
## Utilities
One subsection per utility: what it does, and a command example you can run. The examples assume `bin/` is on your `PATH` (see [Install](#install)) and use small sample files — every example below was run in a fresh scratch directory and verified to work. Utilities that change files show a preview first; add the `--apply` / `--move` flag shown in `--help` when you are ready to apply it.
@@ -2448,3 +2524,490 @@ generate creative names for projects, pets, or bands from combinable word lists
```sh
namegen --kind pet --count 3 --seed 1
```
**Slice K — More monitors: temperature, CPU & memory (251-275)**
### tempgraph
live CPU temperature sparkline over time
```sh
tempgraph --mock --count 3 --interval 0.2
```
### coretemp
per-core temperature table with mini sparklines
```sh
coretemp --mock --count 3 --interval 0.2
```
### gputemp
GPU temperature graph
```sh
gputemp --mock --count 3 --interval 0.2
```
### temphist
log temperatures and render history as an ASCII graph
```sh
temphist --mock --samples 3 --log ./temphist.log
temphist graph --log ./temphist.log
```
### tempzones
all thermal zones side-by-side with sparklines
```sh
tempzones --mock --count 3 --interval 0.2
```
### tempdelta
temperature rate of change in degC/min per zone
```sh
tempdelta --mock
```
### tempalarm
alert when any temperature crosses a threshold
```sh
tempalarm --mock
```
### tempfan
temperature vs fan speed correlation plot
```sh
tempfan --mock --count 3 --interval 0.2
```
### tempthrottle
detect thermal throttling from MHz drop + temperature
```sh
tempthrottle --mock
```
### tempdiff
temperature before vs after running a command
```sh
tempdiff --mock -- true
```
### tempmax
session high-water marks: max temperature per zone
```sh
tempmax --mock --count 3 --interval 0.2
```
### tempslope
predict minutes to throttle from the current heating slope
```sh
tempslope --mock --count 3 --interval 0.2
```
### corebars
per-core CPU usage bars, live, one line per core
```sh
corebars --count 2 --interval 0.2
```
### cpushare
CPU time split user/system/iowait/idle as stacked bars
```sh
cpushare --count 2 --interval 0.2
```
### cpusteal
steal time monitor for VMs with history graph
```sh
cpusteal --count 2 --interval 0.2
```
### irqtop
top interrupt consumers from /proc/interrupts and /proc/stat
```sh
irqtop --top 3 --count 2 --interval 0.2
```
### ctxwatch
context switch rate monitor
```sh
ctxwatch --count 2 --interval 0.2
```
### cpuidle
per-core idle and C-state time monitor
```sh
cpuidle --count 2 --interval 0.2
```
### runq
run queue length history graph
```sh
runq --count 2 --interval 0.2
```
### cpuburst
detect CPU bursts and log them with process attribution
```sh
cpuburst --count 2 --interval 0.2
```
### memleak
watch a process RSS growth over time and flag leaks
```sh
memleak 1 --seconds 1 --interval 0.2
```
### swaphist
swap in/out history graph
```sh
swaphist --count 2 --interval 0.2
```
### slabwatch
slab allocator top consumers
```sh
slabwatch --top 3
```
### pagereclaim
page reclaim and major fault rate monitor
```sh
pagereclaim --count 2 --interval 0.2
```
### psigraph
PSI (pressure stall information) graphs for CPU/memory/IO
```sh
psigraph --count 2 --interval 0.2
```
**Slice L — More monitors: disk, network & process (276-300)**
### hugewatch
huge page usage monitor
```sh
hugewatch
```
### cachehit
page cache hit ratio estimate monitor
```sh
cachehit --count 2 --interval 0.2
```
### iolat
per-disk IO latency histogram from /proc/diskstats deltas
```sh
iolat --count 2 --interval 0.2
```
### iodepth
IO queue depth monitor
```sh
iodepth --count 2 --interval 0.2
```
### diskrate
per-disk read/write rate bars, live
```sh
diskrate --count 2 --interval 0.2
```
### fswatch
filesystem write volume per mount point
```sh
fswatch --count 2 --interval 0.2
```
### ioproc
top processes by IO with live delta rates
```sh
ioproc --top 3 --count 2 --interval 0.2
```
### diskbusy
disk busy percentage per device graph
```sh
diskbusy --count 2 --interval 0.2
```
### trimwatch
TRIM/discard activity monitor from /proc/diskstats
```sh
trimwatch --count 2 --interval 0.2
```
### netlat
latency to multiple hosts graphed over time
```sh
netlat 127.0.0.1 --count 2 --interval 0.2
```
### neterr
interface error and drop counter monitor
```sh
neterr --count 2 --interval 0.2
```
### socktop
top sockets by state (ESTABLISHED/TIME_WAIT counts)
```sh
socktop --top 3 --count 2 --interval 0.2
```
### portflow
per-port traffic rates (which local port is busy)
```sh
portflow --top 3 --count 2 --interval 0.2
```
### dnswatch
DNS query latency monitor with graph
```sh
dnswatch --count 2 --interval 0.2
```
### netqueue
interface queue/backlog monitor (drops, qdisc)
```sh
netqueue --count 2 --interval 0.2
```
### wifigraph
WiFi signal strength graph over time
```sh
wifigraph --mock --count 3 --interval 0.2
```
### netretrans
TCP retransmit rate monitor
```sh
netretrans --count 2 --interval 0.2
```
### procmem
top processes by memory with tree grouping
```sh
procmem --top 3
```
### proccpu
top processes by CPU with per-PID history sparklines
```sh
proccpu --top 3 --count 2 --interval 0.2
```
### procage
longest-running processes with age and start time
```sh
procage --top 3
```
### procstate
process counts by state (R/S/D/Z/T) graphed over time
```sh
procstate --count 2 --interval 0.2
```
### procfork
fork rate monitor (new processes per second)
```sh
procfork --count 2 --interval 0.2
```
### procrestart
detect processes that restart frequently
```sh
procrestart --mock --count 2 --interval 0.2
```
### gpuload
GPU utilization and memory graph
```sh
gpuload --mock --count 3 --interval 0.2
```
### gpuproc
top processes by GPU memory
```sh
gpuproc --mock --top 3
```
**Slice M — More monitors: GPU, power & system (301-310)**
### gpupower
GPU power draw graph
```sh
gpupower --mock --count 3 --interval 0.2
```
### batgraph
battery charge/discharge graph over time
```sh
batgraph --mock --count 3 --interval 0.2
```
### wattwatch
power draw estimate in watts
```sh
wattwatch --mock --count 3 --interval 0.2
```
### suspendwatch
suspend/resume event log monitor
```sh
suspendwatch --mock
```
### loadspike
detect load spikes, log top processes at the moment
```sh
loadspike --mock --threshold 2 --seconds 2 --interval 0.2
```
### bootchart
boot time breakdown from dmesg/systemd timestamps
```sh
bootchart
```
### kerneltop
top kernel threads by CPU
```sh
kerneltop
```
### fdgraph
open file descriptor count history graph per process
```sh
fdgraph --mock --count 3 --interval 0.2
```
### lockwatch
detect processes stuck in uninterruptible sleep (D-state)
```sh
lockwatch
```
### sysdash
combined mini-dashboard: CPU, memory, disk, net, temp
```sh
sysdash
```