# fileutils — 310 creative utilities for Termux and Linux 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 `--help` and a `--selftest`; nothing is a stub. ## Install ```sh git clone https://github.com/cnmcdee/util_box.git cd util_box make ``` `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 dependencies. Put `bin/` on your `PATH` to run the utilities by name from anywhere: ```sh export PATH="$PWD/bin:$PATH" ``` ### Termux (Android) ```sh pkg install clang python git clone https://github.com/cnmcdee/util_box.git cd util_box make export PATH="$PWD/bin:$PATH" ``` `clang` builds the C/C++ tools on-device; `python` runs the Python ones. The `tx*` utilities also need the Termux:API app (`pkg install termux-api`) for the Android features they wrap — without it they print a clear message instead of crashing, and several have a Linux fallback (`txstorage` falls back to `df`, `txbattery` to `/sys`). ## Build and test ``` 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 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. ## Layout - `bin/` — the utilities (Python/bash scripts live here; C/C++ binaries are built here by `make` and are git-ignored — see `.gitignore`) - `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: 113 - Python: 172 - bash: 25 C/C++ is used where it fits (performance tools, monitors, system tools); Python and bash where they fit better (glue, text processing, Termux wrappers). Everything is standard library / coreutils / POSIX only — no exotic dependencies, no GUI, Termux-compatible (plain `cc`/`c++`, no ncurses, no Linux-only calls Android lacks). ## Termux The `tx*` utilities wrap `termux-api` commands. Each one checks for its command and prints a clear message when absent instead of crashing, so they degrade gracefully on plain Linux (with a Linux fallback where one exists, e.g. `txstorage` falls back to `df`). ## Usage Every utility is one command with a `--help` and a `--selftest`: ```sh bigfind --help # what it does and all its flags bigfind -n 5 ~/Downloads dupfind --selftest # built-in check on sample files, exit 0 on success ``` Most utilities take a directory or a file and print a report to stdout; several offer `--json` for scripting. Tools that change files (`renumber`, `permfix`, `gitclean`, `searchrep`, ...) show a preview by default and only change anything with an explicit flag such as `--apply` or `--move` — run them without the flag first to see the plan. To check the whole set after building: ```sh 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 310. ## Slice A — File organization & dedup (25) | # | Name | Language | Description | |---|------|----------|-------------| | 001 | `dustack` | Python | show which subdirectories grew most since the last snapshot (growth tracker, not just du) | | 002 | `dupfind` | C | find duplicate files by content hash, with a keep-newest/largest policy and a dry-run plan | | 003 | `namefix` | Python | rename files to a safe portable scheme (strip weird chars, optional lowercase) with an undo log | | 004 | `exifsort` | Python | sort photos into YYYY/MM folders by EXIF/date, dry-run first | | 005 | `emptyhunt` | Python | find empty directories deepest-first, report and optionally remove | | 006 | `flatpack` | Python | flatten a nested tree into one directory, resolving name clashes with suffixes | | 007 | `splitjoin` | C | split a file into N MB chunks and rejoin from a manifest with checksums | | 008 | `bigfind` | C | top-N largest files with age, type and parent-dir context | | 009 | `oldfiles` | Python | files untouched for X days grouped by directory, with size totals and an archive plan | | 010 | `renumber` | Python | rename a set of files to a sequential numbered scheme, preserving extensions, with preview | | 011 | `casefix` | Python | fix filename case collisions (Foo.txt vs foo.txt) for case-insensitive filesystems | | 012 | `extfix` | Python | detect a file's real type by magic bytes and fix a wrong extension | | 013 | `dirwatch` | Python | snapshot a directory tree (names+sizes+hashes) and later diff it to show exactly what changed | | 014 | `treeclean` | Python | remove common junk (thumbs.db, .DS_Store, *~, __pycache__) with a preview and count | | 015 | `sortbyage` | Python | move files into folders by age buckets (today / this week / this month / older) | | 016 | `hashmanifest` | C | create a sha256 manifest of a tree; verify it later | | 017 | `fileage` | Python | a file's age in human terms plus its birth time when the filesystem reports one | | 018 | `nestcount` | Python | count files by depth level in a tree (how deep is the mess?) | | 019 | `similar` | Python | find near-duplicate filenames (fuzzy match) that may be duplicates under different names | | 020 | `archage` | Python | find archives older than X days and report their compression ratios | | 021 | `copysafe` | Python | copy a tree with post-copy hash verification and resume on interruption | | 022 | `moveplan` | Python | dry-run planner: given move rules, show what would move where, then apply | | 023 | `linkcheck` | Python | find broken symlinks in a tree, with their targets | | 024 | `hardlink` | Python | find files with multiple hard links and report the link groups | | 025 | `lostfound` | Python | digital-hoarding report: files untouched 2+ years and over 100 MB | ## Slice B — File content & text (25) | # | Name | Language | Description | |---|------|----------|-------------| | 026 | `wordfreq` | Python | word frequency histogram with stopword filtering and a top-N bar chart | | 027 | `linecount` | C | lines/words/chars per file in a tree, with a summary table and largest-file highlight | | 028 | `diffwords` | Python | word-level diff of two text files (not line-level) | | 029 | `csvpeek` | Python | preview a CSV: columns, inferred types, row count, nulls, sample rows | | 030 | `jsonpeek` | Python | summarize JSON structure: keys, types, depth, size, sample values | | 031 | `logtail` | Python | tail a log with colorized levels and a lines-per-second rate meter | | 032 | `textclean` | Python | normalize text: trim trailing whitespace, fix line endings, collapse blanks, ensure final newline | | 033 | `searchrep` | Python | search/replace across a tree with preview, backups, and a change count | | 034 | `uniqcount` | C | count unique lines with frequencies, sorted | | 035 | `csvsum` | Python | sum/average/min/max a numeric CSV column, optionally grouped by another column | | 036 | `csvstat` | Python | per-column CSV statistics: distinct values, nulls, min/max | | 037 | `xmlpeek` | Python | summarize an XML file: tag counts, depth, attributes | | 038 | `lineend` | Python | detect and convert line endings (CRLF/LF/CR) with a report | | 039 | `encfix` | Python | detect and convert text encodings (UTF-8/16, latin-1) with a report | | 040 | `badlines` | Python | find overlong lines, trailing whitespace, and tabs — a lint for text files | | 041 | `headtail` | Python | show the first and last N lines of a file together (context sandwich) | | 042 | `randline` | Python | pick N random lines from a file | | 043 | `sortuniq` | Python | sort and dedupe a file in place, with a backup | | 044 | `csvjoin` | Python | join two CSVs on a key column | | 045 | `jsongrep` | Python | grep inside JSON values by key path | | 046 | `loghist` | Python | histogram of log events by hour, parsed from timestamps | | 047 | `textstat` | Python | readability stats: sentences, average word length, estimated reading time | | 048 | `hexpeek` | C | hexdump with ASCII and highlighting of printable runs | | 049 | `tailfollow` | Python | follow a file and show only lines matching a pattern, with running counts | | 050 | `diffside` | Python | side-by-side diff of two files in the terminal, with color | ## Slice C — System monitoring (25) | # | Name | Language | Description | |---|------|----------|-------------| | 051 | `cpugraph` | C | live ASCII CPU usage graph per core, read from /proc/stat, with refresh | | 052 | `memtop` | C | top memory users with a bar chart, snapshot mode, sorted by RSS | | 053 | `proctree` | C | process tree with CPU and memory per branch, collapsed by user | | 054 | `loadhist` | C | record load average over time into a log and show a sparkline history | | 055 | `swapwatch` | C | which processes use swap, how much, and the trend since last check | | 056 | `zombiefind` | C | find zombie processes and report their parents | | 057 | `fdleak` | C | processes with the most open file descriptors, with growth since last check | | 058 | `threadcount` | C | processes with the most threads, top-N | | 059 | `bootlog` | C | boot time, uptime, and load since boot in one line | | 060 | `cputemp` | C | CPU temperature from /sys with a tiny history graph (graceful message if absent) | | 061 | `fanwatch` | C | fan speeds from /sys/hwmon when present, graceful message otherwise | | 062 | `prochist` | C | record one process's CPU/mem over time (sampled) and plot it after it exits | | 063 | `nicewatch` | C | processes with unusual nice/priority values | | 064 | `oomscore` | C | top processes by OOM score — who the kernel would kill first | | 065 | `memfrag` | C | memory fragmentation estimate from /proc/buddyinfo | | 066 | `pressure` | C | PSI (pressure stall information) reader with a human summary | | 067 | `schedtop` | C | which processes are waiting on CPU (run queue) right now | | 068 | `cpufreq` | C | current CPU frequency per core, with min/max | | 069 | `sysnap` | C | one-shot system snapshot: load, memory, top processes, disk, network in one report | | 070 | `watchdog` | C | watch a process and report (and optionally restart) when it dies or exceeds limits | | 071 | `prockill` | C | interactive kill by pattern with a dry-run preview first | | 072 | `memmap` | C | one process's memory map summary (heap, stack, libraries) in human sizes | | 073 | `iowait` | C | processes with high I/O wait, from /proc/stat and /proc/*/io | | 074 | `topdisk` | C | processes doing the most disk I/O right now (reads and writes) | | 075 | `kernellog` | C | tail the kernel log with severity colors and a filter | ## Slice D — Network monitoring (25) | # | Name | Language | Description | |---|------|----------|-------------| | 076 | `netgraph` | C | live ASCII traffic graph per interface, from /proc/net/dev, with refresh | | 077 | `nettop` | C | per-process network usage, best-effort mapping from sockets to processes | | 078 | `portscan` | C | which local ports are listening and what owns them | | 079 | `portwatch` | Python | watch a port and report when it opens or closes | | 080 | `dnstime` | Python | measure DNS resolution time for a list of hosts | | 081 | `pingraph` | Python | ping a host and draw a latency graph over time | | 082 | `conntrack` | C | count active TCP connections by state and by remote host | | 083 | `bandwidth` | C | total bytes in/out per interface since boot, with current rates | | 084 | `socklist` | C | list sockets with process, state, and remote endpoint | | 085 | `wifisignal` | Python | Wi-Fi signal strength from /proc/net/wireless or iw, with fallback | | 086 | `ipinfo` | Python | all interfaces, IPs, MTU, and gateway in one table | | 087 | `latency` | Python | measure latency to several hosts and rank them | | 088 | `nettrace` | Python | trace the route to a host with per-hop latency (ping TTL method) | | 089 | `portfree` | Python | find the first free port in a range | | 090 | `connlog` | Python | log new connections over time (poll /proc/net/tcp) and report new/closed | | 091 | `dnsleak` | Python | check which DNS servers are actually used (resolv.conf plus live tests) | | 092 | `netusage` | Python | per-interface usage by hour, from snapshot deltas stored in ~/.cache | | 093 | `sshtest` | Python | test SSH connectivity to a host with timing and a banner grab | | 094 | `httpcode` | Python | fetch a URL and report status, time, size, and redirect chain | | 095 | `certcheck` | Python | a site's TLS certificate expiry date and issuer | | 096 | `netblock` | C | which processes have the most sockets open | | 097 | `multicast` | Python | list multicast group memberships | | 098 | `arpwatch` | Python | ARP table entries with MAC, IP, and interface | | 099 | `netdown` | Python | diagnose network health: gateway, DNS, and internet, with a verdict | | 100 | `trafficlog` | C | record interface byte counts every minute into a CSV and show daily totals | ## Slice E — Disk & storage (25) | # | Name | Language | Description | |---|------|----------|-------------| | 101 | `diskgraph` | C | ASCII bar chart of disk usage by mount point | | 102 | `bigdirs` | C | largest directories in a tree, top-N, with a tree view | | 103 | `inodehunt` | C | directories consuming the most inodes (many small files) | | 104 | `diskfill` | Python | estimate days until a disk fills, from recent growth snapshots | | 105 | `fscheck` | Python | filesystem type, mount options, and free space per mount in one table | | 106 | `trimcheck` | Python | whether TRIM is enabled/supported, from /sys, with graceful fallback | | 107 | `diskage` | C | files by age on a disk — what is old and big | | 108 | `mountlist` | Python | all mounts with type, size, free space, and ro/rw flag | | 109 | `diskbench` | Python | simple write/read speed test on a directory (temp file, cleaned up) | | 110 | `spacereport` | Python | full disk-space report: mounts, top directories, top files, growth | | 111 | `cacheclean` | Python | clear user caches safely (~/.cache, pip, npm) with sizes reclaimed | | 112 | `snapdiff` | Python | compare two disk-usage snapshots and show what grew | | 113 | `filetypes` | C | disk usage by file extension in a tree (which types eat the disk) | | 114 | `emptybig` | C | find large files that are mostly zeros (sparse files) | | 115 | `disktemp` | Python | disk temperature from SMART if smartctl is present, else /sys, else a clear message | | 116 | `raidcheck` | Python | MD RAID status from /proc/mdstat when present | | 117 | `diskio` | C | per-device I/O stats from /proc/diskstats with rates | | 118 | `mountwatch` | Python | watch for mount/unmount events by polling /proc/mounts | | 119 | `quota` | Python | disk quota usage when set, otherwise free space | | 120 | `logrotate` | Python | tiny log rotator: compress old logs, keep N generations | | 121 | `backupcheck` | Python | verify a backup tree matches its source by hash, report missing/changed | | 122 | `synccheck` | Python | dry-run rsync-style diff between two directories (what would change) | | 123 | `diskalarm` | Python | alert when a mount crosses a usage threshold, with a one-line report | | 124 | `fatfree` | C | find files larger than X in a tree and suggest moving them | | 125 | `treemap` | C | ASCII treemap of disk usage by directory (nested bars) | ## Slice F — Archives, conversion, checksums, metadata (25) | # | Name | Language | Description | |---|------|----------|-------------| | 126 | `zipls` | Python | list zip archive contents with sizes, without extracting | | 127 | `tarpeek` | Python | list tar/tar.gz contents with a summary | | 128 | `archratio` | Python | compression ratio of the archives in a directory | | 129 | `zipcheck` | Python | verify archive integrity and report the broken ones | | 130 | `archconv` | Python | convert an archive between zip and tar.gz, with verification | | 131 | `hashfile` | C | hash a file with several algorithms at once (md5/sha1/sha256) in one pass | | 132 | `hashdir` | C | hash a whole tree and write a manifest | | 133 | `verifyhash` | Python | verify files against a checksum file (sha256sum format) | | 134 | `metaread` | Python | file metadata in one view: type, size, times, permissions, xattrs | | 135 | `metacopy` | Python | copy timestamps and permissions from one file to another | | 136 | `touchdate` | Python | set a file's mtime to a given date, or copy it from another file | | 137 | `permfix` | Python | normalize permissions (files 644, dirs 755) with a preview and an undo list | | 138 | `ownfix` | Python | report files in a tree not owned by the current user | | 139 | `execfix` | Python | find scripts without the executable bit, or with it but no shebang | | 140 | `csv2json` | Python | convert a flat CSV file to JSON | | 141 | `json2csv` | Python | convert a flat JSON array to CSV | | 142 | `json2yaml` | Python | convert JSON to YAML (small built-in emitter, stdlib only) | | 143 | `xml2json` | Python | convert simple XML to JSON | | 144 | `base64file` | Python | base64 encode/decode files, with a check round-trip | | 145 | `hexfile` | Python | hex encode/decode files | | 146 | `urlfile` | Python | URL-encode/decode a file or a string | | 147 | `bomfix` | Python | detect, strip, or add a BOM in text files | | 148 | `charset` | Python | detect a file's encoding (UTF-8/16/32, latin-1) with a confidence note | | 149 | `bin2txt` | Python | encode a binary file as text (base64/hex) with a decode header | | 150 | `txt2bin` | Python | decode a bin2txt file back to binary | ## Slice G — Termux/Android (25) | # | Name | Language | Description | |---|------|----------|-------------| | 151 | `txbattery` | bash | battery status (termux-battery-status, /sys fallback) | | 152 | `txclip` | bash | clipboard get/set (termux-clipboard-get/set) | | 153 | `txnotify` | bash | send an Android notification (termux-notification) | | 154 | `txstorage` | bash | storage info (termux-storage, df fallback) | | 155 | `txvibrate` | bash | vibrate the device (termux-vibrate) | | 156 | `txtorch` | bash | torch on/off (termux-torch) | | 157 | `txwifi` | bash | Wi-Fi connection info (termux-wifi-connectioninfo) | | 158 | `txwallpaper` | bash | set the wallpaper from an image (termux-wallpaper) | | 159 | `txcontact` | bash | look up a contact by name (termux-contact-list) | | 160 | `txsms` | bash | list recent SMS messages with a count (termux-sms-list) | | 161 | `txcall` | bash | list recent calls (termux-call-log) | | 162 | `txlocation` | bash | current location with a timeout (termux-location) | | 163 | `txshare` | bash | share a file via the Android share sheet (termux-share) | | 164 | `txopen` | bash | open a file with its default app (termux-open) | | 165 | `txsensors` | bash | list sensors and their current values (termux-sensor) | | 166 | `txscan` | bash | trigger a media scan of a file or directory (termux-media-scan) | | 167 | `txbrightness` | bash | set screen brightness (termux-brightness) | | 168 | `txvolume` | bash | show and set volume levels (termux-volume) | | 169 | `txtts` | bash | speak text out loud (termux-tts-speak) | | 170 | `txdialog` | bash | show a dialog and return the choice (termux-dialog) | | 171 | `txwake` | bash | acquire/release a wake lock (termux-wake-lock/unlock) | | 172 | `txusb` | bash | list USB devices (termux-usb-list) | | 173 | `txtelephony` | bash | telephony and device info (termux-telephony-deviceinfo) | | 174 | `txdownload` | bash | download a file into Downloads (termux-download) | | 175 | `txtermux` | bash | Termux environment report: version, storage, API availability, health check | ## Slice H — Time, dates, units, converters, generators (25) | # | Name | Language | Description | |---|------|----------|-------------| | 176 | `datecalc` | Python | date arithmetic: add/subtract days, difference between dates, weekday | | 177 | `epoch` | Python | convert between epoch seconds and human dates, both ways | | 178 | `countdown` | Python | countdown to a date with a live display | | 179 | `stopwatch` | Python | terminal stopwatch with laps | | 180 | `pomodoro` | Python | pomodoro timer with work/break cycles and a session log | | 181 | `unitconv` | Python | convert units (length, weight, temperature, data) with a table | | 182 | `dataconv` | Python | convert data sizes (B/KB/MB/GB, bits/bytes, MiB vs MB) | | 183 | `tempconv` | Python | temperature converter (C/F/K) with a conversion table | | 184 | `passgen` | Python | generate passwords (length, symbols, word mode) | | 185 | `dice` | Python | roll dice with notation (3d6+2) and a roll history | | 186 | `randpick` | Python | pick a random item from a list or a file | | 187 | `randnum` | Python | random numbers in a range, with an optional seed | | 188 | `uuidgen` | Python | generate UUIDs (v4) and short ids | | 189 | `colorpick` | Python | pick and convert colors (hex/rgb/hsl) and show a terminal swatch | | 190 | `morse` | Python | text to Morse code and back | | 191 | `braille` | Python | text to Braille unicode and back | | 192 | `baseconv` | Python | convert numbers between bases (2/8/10/16/36) | | 193 | `romannum` | Python | convert to and from Roman numerals | | 194 | `timesheet` | Python | log time spent on tasks, with a daily summary | | 195 | `agecalc` | Python | age from a birthdate: years, days lived, next birthday | | 196 | `workdays` | Python | count working days between two dates (weekends excluded) | | 197 | `tzconv` | Python | convert a time between time zones (built-in zone table, system tzdata when present) | | 198 | `speedconv` | Python | speed converter (km/h, mph, m/s, knots) | | 199 | `currconv` | Python | currency converter with an editable offline rate file | | 200 | `quote` | Python | quote of the day (built-in list, deterministic by date) | ## Slice I — Dev & shell helpers (25) | # | Name | Language | Description | |---|------|----------|-------------| | 201 | `gitstat` | Python | one-page git repo summary: branch, status counts, recent commits, stashes | | 202 | `gitclean` | Python | find and remove stale git branches (merged, or with no upstream) with a preview | | 203 | `gitlog` | Python | pretty log with a graph and per-commit file stats, filtered by author/date | | 204 | `cronlist` | Python | list cron jobs with a human-readable explanation of each schedule | | 205 | `croncheck` | Python | validate a cron expression and show the next run times | | 206 | `sshkeys` | Python | list SSH keys, their fingerprints, and which are loaded in the agent | | 207 | `sshhost` | Python | known-hosts report with fingerprints | | 208 | `tmuxls` | Python | tmux/screen sessions with a summary, graceful fallback when absent | | 209 | `tmuxsave` | Python | save and restore a tmux session layout (best effort) | | 210 | `pkglist` | Python | list installed packages (apt/dpkg or pacman) with sizes, top-N | | 211 | `pkgsearch` | Python | search installed packages by name or description | | 212 | `envdiff` | Python | compare environment variables between two shells, or a file and the current env | | 213 | `pathclean` | Python | show PATH entries, flag duplicates and missing directories, print a cleaned PATH | | 214 | `aliaslist` | Python | list shell aliases and functions with their definitions | | 215 | `histstat` | C | shell history statistics: most-used commands, usage by hour | | 216 | `scriptcheck` | Python | syntax-check all shell scripts in a directory (bash -n) and report | | 217 | `pycheck` | Python | syntax-check Python files (py_compile) and report | | 218 | `todo` | Python | find TODO/FIXME/XXX comments in a tree, with counts by file | | 219 | `codelines` | C | count code lines by language in a tree | | 220 | `gitdiffstat` | Python | diff stats between two refs with a per-file table | | 221 | `branchage` | Python | age of git branches, sorted, with last commit | | 222 | `stashlist` | Python | list stashes with a summary of their contents | | 223 | `repocheck` | Python | health check for a git repo: uncommitted, untracked, ahead/behind, large files | | 224 | `maketool` | Python | scaffold a new utility: template file plus a test stub | | 225 | `benchcmd` | Python | benchmark a command's runtime over N runs (average, min, max) | ## Slice J — Fun, creative, novel concepts (25) | # | Name | Language | Description | |---|------|----------|-------------| | 226 | `banner` | Python | ASCII banner text with several built-in fonts (no figlet dependency) | | 227 | `fortune` | Python | random fortune with categories (built-in list) | | 228 | `motd` | Python | generate a message of the day from live system stats plus a quote | | 229 | `typing` | Python | typing speed test in the terminal | | 230 | `quiz` | Python | tiny quiz game with built-in questions and a score | | 231 | `hangman` | Python | hangman game in the terminal | | 232 | `memory` | Python | memory matching game in the terminal | | 233 | `maze` | Python | generate a random ASCII maze | | 234 | `life` | Python | Conway's Game of Life in the terminal for a few generations | | 235 | `starfield` | Python | short animated starfield (frame-limited, so it always exits) | | 236 | `clock` | Python | big ASCII clock, live, with a duration limit | | 237 | `calendar` | Python | month calendar with today highlighted and events read from a file | | 238 | `moonphase` | Python | moon phase calculator from the date (algorithmic, no network) | | 239 | `sunrise` | Python | sunrise/sunset calculator for a given latitude/longitude (algorithmic) | | 240 | `passphrase` | Python | generate a passphrase from a built-in wordlist | | 241 | `anagram` | Python | find anagrams of a word from a built-in wordlist | | 242 | `palindrome` | Python | check palindromes and find the longest palindromic substring | | 243 | `lorem` | Python | generate lorem ipsum text (N paragraphs) | | 244 | `fakeuser` | Python | generate a fake user profile (name, email, address) for testing | | 245 | `fakelog` | Python | generate fake log lines for testing log tools | | 246 | `fakedata` | Python | generate fake CSV data (names, ages, cities) for testing | | 247 | `timer` | Python | simple countdown timer with a message at the end | | 248 | `alarm` | Python | set an alarm (sleep, then a beep and a message) | | 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. **Slice A — File organization & dedup (001-025)** ### dustack show which subdirectories grew most since the last snapshot (growth tracker, not just du) ```sh dustack --snapshot snap.json . dustack --compare snap.json . ``` ### dupfind find duplicate files by content hash, with a keep-newest/largest policy and a dry-run plan ```sh dupfind . ``` ### namefix rename files to a safe portable scheme (strip weird chars, optional lowercase) with an undo log ```sh namefix --dry-run . ``` ### exifsort sort photos into YYYY/MM folders by EXIF/date, dry-run first ```sh exifsort --dry-run . ``` ### emptyhunt find empty directories deepest-first, report and optionally remove ```sh emptyhunt . ``` ### flatpack flatten a nested tree into one directory, resolving name clashes with suffixes ```sh flatpack --dry-run tree/ flat/ ``` ### splitjoin split a file into N MB chunks and rejoin from a manifest with checksums ```sh splitjoin split sample.bin --size 1 splitjoin join sample.bin.manifest --out rejoined.bin ``` ### bigfind top-N largest files with age, type and parent-dir context ```sh bigfind -n 5 . ``` ### oldfiles files untouched for X days grouped by directory, with size totals and an archive plan ```sh oldfiles --days 30 . ``` ### renumber rename a set of files to a sequential numbered scheme, preserving extensions, with preview ```sh renumber --dry-run --prefix img photos/ ``` ### casefix fix filename case collisions (Foo.txt vs foo.txt) for case-insensitive filesystems ```sh casefix --dry-run . ``` ### extfix detect a file's real type by magic bytes and fix a wrong extension ```sh extfix --dry-run . ``` ### dirwatch snapshot a directory tree (names+sizes+hashes) and later diff it to show exactly what changed ```sh dirwatch snapshot -o snap.json . dirwatch diff -s snap.json . ``` ### treeclean remove common junk (thumbs.db, .DS_Store, *~, __pycache__) with a preview and count ```sh treeclean --dry-run . ``` ### sortbyage move files into folders by age buckets (today / this week / this month / older) ```sh sortbyage --dry-run . ``` ### hashmanifest create a sha256 manifest of a tree; verify it later ```sh hashmanifest create src -o MANIFEST.sha256 hashmanifest verify src -m MANIFEST.sha256 ``` ### fileage a file's age in human terms plus its birth time when the filesystem reports one ```sh fileage sample.txt old.txt ``` ### nestcount count files by depth level in a tree (how deep is the mess?) ```sh nestcount . ``` ### similar find near-duplicate filenames (fuzzy match) that may be duplicates under different names ```sh similar . ``` ### archage find archives older than X days and report their compression ratios ```sh archage --days 0 . ``` ### copysafe copy a tree with post-copy hash verification and resume on interruption ```sh copysafe src/ copydest/ ``` ### moveplan dry-run planner: given move rules, show what would move where, then apply ```sh moveplan --rule '*.txt -> txt/' . ``` ### linkcheck find broken symlinks in a tree, with their targets ```sh linkcheck . ``` ### hardlink find files with multiple hard links and report the link groups ```sh hardlink . ``` ### lostfound digital-hoarding report: files untouched 2+ years and over 100 MB ```sh lostfound --years 0 --min-size 1K . ``` **Slice B — File content & text (026-050)** ### wordfreq word frequency histogram with stopword filtering and a top-N bar chart ```sh wordfreq sample.txt ``` ### linecount lines/words/chars per file in a tree, with a summary table and largest-file highlight ```sh linecount . ``` ### diffwords word-level diff of two text files (not line-level) ```sh diffwords --no-color a.txt b.txt ``` ### csvpeek preview a CSV: columns, inferred types, row count, nulls, sample rows ```sh csvpeek sample.csv ``` ### jsonpeek summarize JSON structure: keys, types, depth, size, sample values ```sh jsonpeek sample.json ``` ### logtail tail a log with colorized levels and a lines-per-second rate meter ```sh logtail -n 3 --no-color sample.log ``` ### textclean normalize text: trim trailing whitespace, fix line endings, collapse blanks, ensure final newline ```sh textclean messy.txt ``` ### searchrep search/replace across a tree with preview, backups, and a change count ```sh searchrep hello goodbye sample.txt ``` ### uniqcount count unique lines with frequencies, sorted ```sh uniqcount sample.txt ``` ### csvsum sum/average/min/max a numeric CSV column, optionally grouped by another column ```sh csvsum age sample.csv ``` ### csvstat per-column CSV statistics: distinct values, nulls, min/max ```sh csvstat sample.csv ``` ### xmlpeek summarize an XML file: tag counts, depth, attributes ```sh xmlpeek sample.xml ``` ### lineend detect and convert line endings (CRLF/LF/CR) with a report ```sh lineend crlf.txt ``` ### encfix detect and convert text encodings (UTF-8/16, latin-1) with a report ```sh encfix latin1.txt ``` ### badlines find overlong lines, trailing whitespace, and tabs — a lint for text files ```sh badlines messy.txt ``` ### headtail show the first and last N lines of a file together (context sandwich) ```sh headtail -n 2 sample.txt ``` ### randline pick N random lines from a file ```sh randline -n 2 --seed 1 sample.txt ``` ### sortuniq sort and dedupe a file in place, with a backup ```sh sortuniq unsorted.txt ``` ### csvjoin join two CSVs on a key column ```sh csvjoin --left-key id --right-key id left.csv right.csv ``` ### jsongrep grep inside JSON values by key path ```sh jsongrep --key '*.email' sample.json ``` ### loghist histogram of log events by hour, parsed from timestamps ```sh loghist sample.log ``` ### textstat readability stats: sentences, average word length, estimated reading time ```sh textstat sample.txt ``` ### hexpeek hexdump with ASCII and highlighting of printable runs ```sh hexpeek sample.txt ``` ### tailfollow follow a file and show only lines matching a pattern, with running counts ```sh tailfollow --from-start --timeout 1 ERROR sample.log ``` ### diffside side-by-side diff of two files in the terminal, with color ```sh diffside --no-color a.txt b.txt ``` **Slice C — System monitoring (051-075)** ### cpugraph live ASCII CPU usage graph per core, read from /proc/stat, with refresh ```sh cpugraph --frames 1 --interval 0.2 ``` ### memtop top memory users with a bar chart, snapshot mode, sorted by RSS ```sh memtop -n 3 ``` ### proctree process tree with CPU and memory per branch, collapsed by user ```sh proctree --max-depth 2 ``` ### loadhist record load average over time into a log and show a sparkline history ```sh loadhist --record --file ./loadhist.log loadhist --show --file ./loadhist.log ``` ### swapwatch which processes use swap, how much, and the trend since last check ```sh swapwatch -n 3 ``` ### zombiefind find zombie processes and report their parents ```sh zombiefind ``` ### fdleak processes with the most open file descriptors, with growth since last check ```sh fdleak -n 3 ``` ### threadcount processes with the most threads, top-N ```sh threadcount -n 3 ``` ### bootlog boot time, uptime, and load since boot in one line ```sh bootlog ``` ### cputemp CPU temperature from /sys with a tiny history graph (graceful message if absent) ```sh cputemp ``` ### fanwatch fan speeds from /sys/hwmon when present, graceful message otherwise ```sh fanwatch ``` ### prochist record one process's CPU/mem over time (sampled) and plot it after it exits ```sh prochist --pid 1 --samples 2 --interval 0.2 ``` ### nicewatch processes with unusual nice/priority values ```sh nicewatch ``` ### oomscore top processes by OOM score — who the kernel would kill first ```sh oomscore -n 3 ``` ### memfrag memory fragmentation estimate from /proc/buddyinfo ```sh memfrag ``` ### pressure PSI (pressure stall information) reader with a human summary ```sh pressure ``` ### schedtop which processes are waiting on CPU (run queue) right now ```sh schedtop ``` ### cpufreq current CPU frequency per core, with min/max ```sh cpufreq ``` ### sysnap one-shot system snapshot: load, memory, top processes, disk, network in one report ```sh sysnap ``` ### watchdog watch a process and report (and optionally restart) when it dies or exceeds limits ```sh watchdog --cmd "sleep 0.5" --checks 3 --interval 0.2 ``` ### prockill interactive kill by pattern with a dry-run preview first ```sh prockill nosuchpattern123 ``` ### memmap one process's memory map summary (heap, stack, libraries) in human sizes ```sh memmap 1 ``` ### iowait processes with high I/O wait, from /proc/stat and /proc/*/io ```sh iowait --interval 0.2 ``` ### topdisk processes doing the most disk I/O right now (reads and writes) ```sh topdisk -n 3 --interval 0.2 ``` ### kernellog tail the kernel log with severity colors and a filter ```sh kernellog -n 3 ``` **Slice D — Network monitoring (076-100)** ### netgraph live ASCII traffic graph per interface, from /proc/net/dev, with refresh ```sh netgraph -n 2 -i 0.2 lo ``` ### nettop per-process network usage, best-effort mapping from sockets to processes ```sh nettop --once ``` ### portscan which local ports are listening and what owns them ```sh portscan --tcp ``` ### portwatch watch a port and report when it opens or closes ```sh portwatch 127.0.0.1 22 -t 2 -i 1 ``` ### dnstime measure DNS resolution time for a list of hosts ```sh dnstime localhost -n 1 ``` ### pingraph ping a host and draw a latency graph over time ```sh pingraph -c 2 -i 0.2 127.0.0.1 ``` ### conntrack count active TCP connections by state and by remote host ```sh conntrack ``` ### bandwidth total bytes in/out per interface since boot, with current rates ```sh bandwidth lo -i 1 ``` ### socklist list sockets with process, state, and remote endpoint ```sh socklist --tcp ``` ### wifisignal Wi-Fi signal strength from /proc/net/wireless or iw, with fallback ```sh wifisignal ``` ### ipinfo all interfaces, IPs, MTU, and gateway in one table ```sh ipinfo ``` ### latency measure latency to several hosts and rank them ```sh latency 127.0.0.1 -p 22 -n 1 ``` ### nettrace trace the route to a host with per-hop latency (ping TTL method) ```sh nettrace -m 2 127.0.0.1 ``` ### portfree find the first free port in a range ```sh portfree 8000 8010 ``` ### connlog log new connections over time (poll /proc/net/tcp) and report new/closed ```sh connlog -i 1 -t 2 ``` ### dnsleak check which DNS servers are actually used (resolv.conf plus live tests) ```sh dnsleak ``` ### netusage per-interface usage by hour, from snapshot deltas stored in ~/.cache ```sh netusage --snapshot --cache-dir cache netusage --today --cache-dir cache ``` ### sshtest test SSH connectivity to a host with timing and a banner grab ```sh sshtest 127.0.0.1 ``` ### httpcode fetch a URL and report status, time, size, and redirect chain ```sh httpcode --timeout 4 https://example.com ``` ### certcheck a site's TLS certificate expiry date and issuer ```sh certcheck example.com ``` ### netblock which processes have the most sockets open ```sh netblock ``` ### multicast list multicast group memberships ```sh multicast ``` ### arpwatch ARP table entries with MAC, IP, and interface ```sh arpwatch ``` ### netdown diagnose network health: gateway, DNS, and internet, with a verdict ```sh netdown ``` ### trafficlog record interface byte counts every minute into a CSV and show daily totals ```sh trafficlog --once --file traffic.csv trafficlog --today --file traffic.csv ``` **Slice E — Disk & storage (101-125)** ### diskgraph ASCII bar chart of disk usage by mount point ```sh diskgraph ``` ### bigdirs largest directories in a tree, top-N, with a tree view ```sh bigdirs -n 5 . ``` ### inodehunt directories consuming the most inodes (many small files) ```sh inodehunt -n 5 . ``` ### diskfill estimate days until a disk fills, from recent growth snapshots ```sh diskfill snapshot --db diskfill.csv / diskfill --db diskfill.csv ``` ### fscheck filesystem type, mount options, and free space per mount in one table ```sh fscheck ``` ### trimcheck whether TRIM is enabled/supported, from /sys, with graceful fallback ```sh trimcheck ``` ### diskage files by age on a disk — what is old and big ```sh diskage -n 5 . ``` ### mountlist all mounts with type, size, free space, and ro/rw flag ```sh mountlist ``` ### diskbench simple write/read speed test on a directory (temp file, cleaned up) ```sh diskbench --size 1 . ``` ### spacereport full disk-space report: mounts, top directories, top files, growth ```sh spacereport --top 5 . ``` ### cacheclean clear user caches safely (~/.cache, pip, npm) with sizes reclaimed ```sh cacheclean --home . ``` ### snapdiff compare two disk-usage snapshots and show what grew ```sh snapdiff snapshot -o snap1.json . echo new > newfile.txt snapdiff snapshot -o snap2.json . snapdiff diff snap1.json snap2.json ``` ### filetypes disk usage by file extension in a tree (which types eat the disk) ```sh filetypes . ``` ### emptybig find large files that are mostly zeros (sparse files) ```sh emptybig . ``` ### disktemp disk temperature from SMART if smartctl is present, else /sys, else a clear message ```sh disktemp ``` ### raidcheck MD RAID status from /proc/mdstat when present ```sh raidcheck ``` ### diskio per-device I/O stats from /proc/diskstats with rates ```sh diskio ``` ### mountwatch watch for mount/unmount events by polling /proc/mounts ```sh mountwatch --duration 1 --interval 0.5 ``` ### quota disk quota usage when set, otherwise free space ```sh quota ``` ### logrotate tiny log rotator: compress old logs, keep N generations ```sh logrotate --dry-run --force logs/ ``` ### backupcheck verify a backup tree matches its source by hash, report missing/changed ```sh cp -r src/ backup2/ backupcheck src/ backup2/ ``` ### synccheck dry-run rsync-style diff between two directories (what would change) ```sh synccheck src/ dst/ ``` ### diskalarm alert when a mount crosses a usage threshold, with a one-line report ```sh diskalarm --threshold 99 ``` ### fatfree find files larger than X in a tree and suggest moving them ```sh fatfree --min-size 1K . ``` ### treemap ASCII treemap of disk usage by directory (nested bars) ```sh treemap --depth 2 . ``` **Slice F — Archives, conversion, checksums, metadata (126-150)** ### zipls list zip archive contents with sizes, without extracting ```sh zipls pack.zip ``` ### tarpeek list tar/tar.gz contents with a summary ```sh tarpeek sample.tar.gz ``` ### archratio compression ratio of the archives in a directory ```sh archratio . ``` ### zipcheck verify archive integrity and report the broken ones ```sh zipcheck pack.zip ``` ### archconv convert an archive between zip and tar.gz, with verification ```sh archconv --to tar.gz pack.zip ``` ### hashfile hash a file with several algorithms at once (md5/sha1/sha256) in one pass ```sh hashfile sample.txt ``` ### hashdir hash a whole tree and write a manifest ```sh hashdir . ``` ### verifyhash verify files against a checksum file (sha256sum format) ```sh sha256sum sample.txt a.txt > manifest.txt verifyhash manifest.txt ``` ### metaread file metadata in one view: type, size, times, permissions, xattrs ```sh metaread sample.txt ``` ### metacopy copy timestamps and permissions from one file to another ```sh metacopy a.txt b.txt metaread b.txt ``` ### touchdate set a file's mtime to a given date, or copy it from another file ```sh touchdate --date 2020-01-15 b.txt fileage b.txt ``` ### permfix normalize permissions (files 644, dirs 755) with a preview and an undo list ```sh permfix . ``` ### ownfix report files in a tree not owned by the current user ```sh ownfix . ``` ### execfix find scripts without the executable bit, or with it but no shebang ```sh execfix . ``` ### csv2json convert a flat CSV file to JSON ```sh csv2json sample.csv ``` ### json2csv convert a flat JSON array to CSV ```sh json2csv sample.json ``` ### json2yaml convert JSON to YAML (small built-in emitter, stdlib only) ```sh json2yaml sample.json ``` ### xml2json convert simple XML to JSON ```sh xml2json sample.xml ``` ### base64file base64 encode/decode files, with a check round-trip ```sh base64file sample.txt encoded.b64 ``` ### hexfile hex encode/decode files ```sh hexfile --dump sample.txt ``` ### urlfile URL-encode/decode a file or a string ```sh urlfile --string "hello world" ``` ### bomfix detect, strip, or add a BOM in text files ```sh bomfix bom.txt ``` ### charset detect a file's encoding (UTF-8/16/32, latin-1) with a confidence note ```sh charset sample.txt latin1.txt ``` ### bin2txt encode a binary file as text (base64/hex) with a decode header ```sh bin2txt sample.bin encoded.txt ``` ### txt2bin decode a bin2txt file back to binary ```sh bin2txt sample.bin encoded.txt txt2bin encoded.txt decoded.bin ``` **Slice G — Termux/Android (151-175)** ### txbattery battery status (termux-battery-status, /sys fallback) ```sh txbattery ``` ### txclip clipboard get/set (termux-clipboard-get/set) ```sh txclip set hello ``` ### txnotify send an Android notification (termux-notification) ```sh txnotify -t "Backup done" -c "All files copied" --dry-run ``` ### txstorage storage info (termux-storage, df fallback) ```sh txstorage ``` ### txvibrate vibrate the device (termux-vibrate) ```sh txvibrate 200 --dry-run ``` ### txtorch torch on/off (termux-torch) ```sh txtorch on --dry-run ``` ### txwifi Wi-Fi connection info (termux-wifi-connectioninfo) ```sh txwifi ``` ### txwallpaper set the wallpaper from an image (termux-wallpaper) ```sh txwallpaper photo.jpg --dry-run ``` ### txcontact look up a contact by name (termux-contact-list) ```sh txcontact ada ``` ### txsms list recent SMS messages with a count (termux-sms-list) ```sh txsms -n 3 ``` ### txcall list recent calls (termux-call-log) ```sh txcall -n 3 ``` ### txlocation current location with a timeout (termux-location) ```sh txlocation --provider gps --timeout 2 ``` ### txshare share a file via the Android share sheet (termux-share) ```sh txshare sample.txt --dry-run ``` ### txopen open a file with its default app (termux-open) ```sh txopen sample.txt --dry-run ``` ### txsensors list sensors and their current values (termux-sensor) ```sh txsensors -l ``` ### txscan trigger a media scan of a file or directory (termux-media-scan) ```sh txscan sample.txt --dry-run ``` ### txbrightness set screen brightness (termux-brightness) ```sh txbrightness 50% --dry-run ``` ### txvolume show and set volume levels (termux-volume) ```sh txvolume music ``` ### txtts speak text out loud (termux-tts-speak) ```sh txtts --dry-run Hello world ``` ### txdialog show a dialog and return the choice (termux-dialog) ```sh txdialog confirm -t "Delete file?" --dry-run ``` ### txwake acquire/release a wake lock (termux-wake-lock/unlock) ```sh txwake status --dry-run ``` ### txusb list USB devices (termux-usb-list) ```sh txusb ``` ### txtelephony telephony and device info (termux-telephony-deviceinfo) ```sh txtelephony ``` ### txdownload download a file into Downloads (termux-download) ```sh txdownload --dry-run https://example.com/file.zip ``` ### txtermux Termux environment report: version, storage, API availability, health check ```sh txtermux ``` **Slice H — Time, dates, units, converters, generators (176-200)** ### datecalc date arithmetic: add/subtract days, difference between dates, weekday ```sh datecalc 2026-01-01 --add 10 ``` ### epoch convert between epoch seconds and human dates, both ways ```sh epoch 1700000000 ``` ### countdown countdown to a date with a live display ```sh countdown 90s --once ``` ### stopwatch terminal stopwatch with laps ```sh stopwatch --duration 1 ``` ### pomodoro pomodoro timer with work/break cycles and a session log ```sh pomodoro --work 0.02 --break 0 --cycles 1 --no-log ``` ### unitconv convert units (length, weight, temperature, data) with a table ```sh unitconv 5 km mi ``` ### dataconv convert data sizes (B/KB/MB/GB, bits/bytes, MiB vs MB) ```sh dataconv 1 GiB --to MB ``` ### tempconv temperature converter (C/F/K) with a conversion table ```sh tempconv 100 C --to F ``` ### passgen generate passwords (length, symbols, word mode) ```sh passgen --length 12 --seed 1 ``` ### dice roll dice with notation (3d6+2) and a roll history ```sh dice 3d6+2 --seed 7 ``` ### randpick pick a random item from a list or a file ```sh randpick apple banana cherry --seed 1 ``` ### randnum random numbers in a range, with an optional seed ```sh randnum 1 10 --seed 1 ``` ### uuidgen generate UUIDs (v4) and short ids ```sh uuidgen --count 2 ``` ### colorpick pick and convert colors (hex/rgb/hsl) and show a terminal swatch ```sh colorpick '#ff8800' --no-swatch ``` ### morse text to Morse code and back ```sh morse SOS ``` ### braille text to Braille unicode and back ```sh braille hello ``` ### baseconv convert numbers between bases (2/8/10/16/36) ```sh baseconv 255 16 ``` ### romannum convert to and from Roman numerals ```sh romannum 2026 ``` ### timesheet log time spent on tasks, with a daily summary ```sh timesheet --file ./ts.csv start demo timesheet --file ./ts.csv stop timesheet --file ./ts.csv summary ``` ### agecalc age from a birthdate: years, days lived, next birthday ```sh agecalc 1990-05-15 ``` ### workdays count working days between two dates (weekends excluded) ```sh workdays 2026-01-01 2026-01-31 ``` ### tzconv convert a time between time zones (built-in zone table, system tzdata when present) ```sh tzconv 14:30 UTC America/New_York ``` ### speedconv speed converter (km/h, mph, m/s, knots) ```sh speedconv 100 --to mph ``` ### currconv currency converter with an editable offline rate file ```sh currconv 10 USD EUR ``` ### quote quote of the day (built-in list, deterministic by date) ```sh quote --number 1 ``` **Slice I — Dev & shell helpers (201-225)** ### gitstat one-page git repo summary: branch, status counts, recent commits, stashes ```sh gitstat . ``` ### gitclean find and remove stale git branches (merged, or with no upstream) with a preview ```sh gitclean . ``` ### gitlog pretty log with a graph and per-commit file stats, filtered by author/date ```sh gitlog -n 3 . ``` ### cronlist list cron jobs with a human-readable explanation of each schedule ```sh cronlist --file crontab.txt ``` ### croncheck validate a cron expression and show the next run times ```sh croncheck "0 9 * * 1-5" ``` ### sshkeys list SSH keys, their fingerprints, and which are loaded in the agent ```sh sshkeys --dir sshdir ``` ### sshhost known-hosts report with fingerprints ```sh sshhost --file ssh_known_hosts ``` ### tmuxls tmux/screen sessions with a summary, graceful fallback when absent ```sh tmuxls ``` ### tmuxsave save and restore a tmux session layout (best effort) ```sh tmuxsave list ``` ### pkglist list installed packages (apt/dpkg or pacman) with sizes, top-N ```sh pkglist --top 5 ``` ### pkgsearch search installed packages by name or description ```sh pkgsearch --limit 5 bash ``` ### envdiff compare environment variables between two shells, or a file and the current env ```sh envdiff env1.env env2.env ``` ### pathclean show PATH entries, flag duplicates and missing directories, print a cleaned PATH ```sh pathclean --path /usr/bin:/bin:/usr/bin ``` ### aliaslist list shell aliases and functions with their definitions ```sh aliaslist --file aliases.sh ``` ### histstat shell history statistics: most-used commands, usage by hour ```sh histstat -f history.txt ``` ### scriptcheck syntax-check all shell scripts in a directory (bash -n) and report ```sh scriptcheck . ``` ### pycheck syntax-check Python files (py_compile) and report ```sh pycheck . ``` ### todo find TODO/FIXME/XXX comments in a tree, with counts by file ```sh todo . ``` ### codelines count code lines by language in a tree ```sh codelines . ``` ### gitdiffstat diff stats between two refs with a per-file table ```sh gitdiffstat HEAD~1 HEAD . ``` ### branchage age of git branches, sorted, with last commit ```sh branchage . ``` ### stashlist list stashes with a summary of their contents ```sh stashlist . ``` ### repocheck health check for a git repo: uncommitted, untracked, ahead/behind, large files ```sh repocheck . ``` ### maketool scaffold a new utility: template file plus a test stub ```sh maketool --dir . demotool ``` ### benchcmd benchmark a command's runtime over N runs (average, min, max) ```sh benchcmd -n 2 echo hi ``` **Slice J — Fun, creative, novel concepts (226-250)** ### banner ASCII banner text with several built-in fonts (no figlet dependency) ```sh banner hello ``` ### fortune random fortune with categories (built-in list) ```sh fortune --seed 1 ``` ### motd generate a message of the day from live system stats plus a quote ```sh motd ``` ### typing typing speed test in the terminal ```sh typing --auto --seed 1 ``` ### quiz tiny quiz game with built-in questions and a score ```sh quiz -n 2 --auto --seed 1 ``` ### hangman hangman game in the terminal ```sh hangman --auto --word test ``` ### memory memory matching game in the terminal ```sh memory --auto --seed 1 ``` ### maze generate a random ASCII maze ```sh maze -w 10 -H 5 --seed 1 ``` ### life Conway's Game of Life in the terminal for a few generations ```sh life -g 3 --pattern glider --delay 0 ``` ### starfield short animated starfield (frame-limited, so it always exits) ```sh starfield --frames 2 --seed 1 --delay 0 ``` ### clock big ASCII clock, live, with a duration limit ```sh clock --duration 1 --no-clear ``` ### calendar month calendar with today highlighted and events read from a file ```sh calendar --month 1 --year 2026 ``` ### moonphase moon phase calculator from the date (algorithmic, no network) ```sh moonphase --date 2026-01-01 ``` ### sunrise sunrise/sunset calculator for a given latitude/longitude (algorithmic) ```sh sunrise --lat 21.3 --lon -157.8 --date 2026-01-01 ``` ### passphrase generate a passphrase from a built-in wordlist ```sh passphrase --seed 1 ``` ### anagram find anagrams of a word from a built-in wordlist ```sh anagram listen ``` ### palindrome check palindromes and find the longest palindromic substring ```sh palindrome racecar ``` ### lorem generate lorem ipsum text (N paragraphs) ```sh lorem -p 1 --seed 1 ``` ### fakeuser generate a fake user profile (name, email, address) for testing ```sh fakeuser --seed 1 ``` ### fakelog generate fake log lines for testing log tools ```sh fakelog -n 3 --seed 1 ``` ### fakedata generate fake CSV data (names, ages, cities) for testing ```sh fakedata -n 3 --seed 1 ``` ### timer simple countdown timer with a message at the end ```sh timer --seconds 2 --message done --quiet ``` ### alarm set an alarm (sleep, then a beep and a message) ```sh alarm --in 1s --message test --quiet ``` ### focus focus session tracker: start/stop, log, daily total ```sh focus start demo focus status focus stop focus today ``` ### namegen 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 ```