310 Command-Line Tools in ONE Repo?! util_box Turns Your Phone and Your Linux Box Into a Pocket Workshop

util_box is 310 small, sharp command-line utilities for Termux and Linux: file tools, text tools, 110 system monitors, Termux helpers and more. Every one has --help, --selftest, a verified example and a screenshot. Build it with make and go.

310 Command-Line Tools in ONE Repo?! util_box Turns Your Phone and Your Linux Box Into a Pocket Workshop

util_box is 310 small, sharp command-line utilities for Termux and Linux: 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. The test suite builds everything and runs all 310 smoke tests — and it passes 310/310.

That is the whole pitch: one repo, one make, and your phone or your Linux box gains a workshop. The split is honest about where each language earns its keep — 113 in C where performance matters (monitors, system tools), 172 in Python and 25 in bash where glue and text processing fit better. Everything is standard library / coreutils / POSIX only: no third-party packages, no GUI, no exotic dependencies.

GitHub - cnmcdee/util_box: 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.

Below is the full set — all 310 utilities, each with its description, a command example you can run, and a screenshot. The examples assume bin/ is on your PATH (see Install) and use small sample files; every example in the repo was run in a fresh scratch directory and verified to work. Screenshots are served straight from the repo.

Install

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. Put bin/ on your PATH to run the utilities by name from anywhere:

export PATH="$PWD/bin:$PATH"

Termux (Android)

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).

Usage

Every utility is one command with a --help and a --selftest:

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:

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) with a 60 s timeout each, and reports pass/fail per utility. It exits 0 only if the build and every test pass.

The 310 utilities

Thirteen slices, 310 tools. Jump to a slice:

Slice A — File organization & dedup (25)

001 · dustack

show which subdirectories grew most since the last snapshot (growth tracker, not just du)

dustack --snapshot snap.json .
dustack --compare snap.json .
dustack screenshot
dustack in action.

002 · dupfind

find duplicate files by content hash, with a keep-newest/largest policy and a dry-run plan

dupfind .
dupfind screenshot
dupfind in action.

003 · namefix

rename files to a safe portable scheme (strip weird chars, optional lowercase) with an undo log

namefix --dry-run .
namefix screenshot
namefix in action.

004 · exifsort

sort photos into YYYY/MM folders by EXIF/date, dry-run first

exifsort --dry-run .
exifsort screenshot
exifsort in action.

005 · emptyhunt

find empty directories deepest-first, report and optionally remove

emptyhunt .
emptyhunt screenshot
emptyhunt in action.

006 · flatpack

flatten a nested tree into one directory, resolving name clashes with suffixes

flatpack --dry-run tree/ flat/
flatpack screenshot
flatpack in action.

007 · splitjoin

split a file into N MB chunks and rejoin from a manifest with checksums

splitjoin split sample.bin --size 1
splitjoin join sample.bin.manifest --out rejoined.bin
splitjoin screenshot
splitjoin in action.

008 · bigfind

top-N largest files with age, type and parent-dir context

bigfind -n 5 .
bigfind screenshot
bigfind in action.

009 · oldfiles

files untouched for X days grouped by directory, with size totals and an archive plan

oldfiles --days 30 .
oldfiles screenshot
oldfiles in action.

010 · renumber

rename a set of files to a sequential numbered scheme, preserving extensions, with preview

renumber --dry-run --prefix img photos/
renumber screenshot
renumber in action.

011 · casefix

fix filename case collisions (Foo.txt vs foo.txt) for case-insensitive filesystems

casefix --dry-run .
casefix screenshot
casefix in action.

012 · extfix

detect a file's real type by magic bytes and fix a wrong extension

extfix --dry-run .
extfix screenshot
extfix in action.

013 · dirwatch

snapshot a directory tree (names+sizes+hashes) and later diff it to show exactly what changed

dirwatch snapshot -o snap.json .
dirwatch diff -s snap.json .
dirwatch screenshot
dirwatch in action.

014 · treeclean

remove common junk (thumbs.db, .DS_Store, *~, __pycache__) with a preview and count

treeclean --dry-run .
treeclean screenshot
treeclean in action.

015 · sortbyage

move files into folders by age buckets (today / this week / this month / older)

sortbyage --dry-run .
sortbyage screenshot
sortbyage in action.

016 · hashmanifest

create a sha256 manifest of a tree; verify it later

hashmanifest create src -o MANIFEST.sha256
hashmanifest verify src -m MANIFEST.sha256
hashmanifest screenshot
hashmanifest in action.

017 · fileage

a file's age in human terms plus its birth time when the filesystem reports one

fileage sample.txt old.txt
fileage screenshot
fileage in action.

018 · nestcount

count files by depth level in a tree (how deep is the mess?)

nestcount .
nestcount screenshot
nestcount in action.

019 · similar

find near-duplicate filenames (fuzzy match) that may be duplicates under different names

similar .
similar screenshot
similar in action.

020 · archage

find archives older than X days and report their compression ratios

archage --days 0 .
archage screenshot
archage in action.

021 · copysafe

copy a tree with post-copy hash verification and resume on interruption

copysafe src/ copydest/
copysafe screenshot
copysafe in action.

022 · moveplan

dry-run planner: given move rules, show what would move where, then apply

moveplan --rule '*.txt -> txt/' .
moveplan screenshot
moveplan in action.

023 · linkcheck

find broken symlinks in a tree, with their targets

linkcheck .
linkcheck screenshot
linkcheck in action.

find files with multiple hard links and report the link groups

hardlink .
hardlink screenshot
hardlink in action.

025 · lostfound

digital-hoarding report: files untouched 2+ years and over 100 MB

lostfound --years 0 --min-size 1K .
lostfound screenshot
lostfound in action.

Slice B — File content & text (25)

026 · wordfreq

word frequency histogram with stopword filtering and a top-N bar chart

wordfreq sample.txt
wordfreq screenshot
wordfreq in action.

027 · linecount

lines/words/chars per file in a tree, with a summary table and largest-file highlight

linecount .
linecount screenshot
linecount in action.

028 · diffwords

word-level diff of two text files (not line-level)

diffwords --no-color a.txt b.txt
diffwords screenshot
diffwords in action.

029 · csvpeek

preview a CSV: columns, inferred types, row count, nulls, sample rows

csvpeek sample.csv
csvpeek screenshot
csvpeek in action.

030 · jsonpeek

summarize JSON structure: keys, types, depth, size, sample values

jsonpeek sample.json
jsonpeek screenshot
jsonpeek in action.

031 · logtail

tail a log with colorized levels and a lines-per-second rate meter

logtail -n 3 --no-color sample.log
logtail screenshot
logtail in action.

032 · textclean

normalize text: trim trailing whitespace, fix line endings, collapse blanks, ensure final newline

textclean messy.txt
textclean screenshot
textclean in action.

033 · searchrep

search/replace across a tree with preview, backups, and a change count

searchrep hello goodbye sample.txt
searchrep screenshot
searchrep in action.

034 · uniqcount

count unique lines with frequencies, sorted

uniqcount sample.txt
uniqcount screenshot
uniqcount in action.

035 · csvsum

sum/average/min/max a numeric CSV column, optionally grouped by another column

csvsum age sample.csv
csvsum screenshot
csvsum in action.

036 · csvstat

per-column CSV statistics: distinct values, nulls, min/max

csvstat sample.csv
csvstat screenshot
csvstat in action.

037 · xmlpeek

summarize an XML file: tag counts, depth, attributes

xmlpeek sample.xml
xmlpeek screenshot
xmlpeek in action.

038 · lineend

detect and convert line endings (CRLF/LF/CR) with a report

lineend crlf.txt
lineend screenshot
lineend in action.

039 · encfix

detect and convert text encodings (UTF-8/16, latin-1) with a report

encfix latin1.txt
encfix screenshot
encfix in action.

040 · badlines

find overlong lines, trailing whitespace, and tabs — a lint for text files

badlines messy.txt
badlines screenshot
badlines in action.

041 · headtail

show the first and last N lines of a file together (context sandwich)

headtail -n 2 sample.txt
headtail screenshot
headtail in action.

042 · randline

pick N random lines from a file

randline -n 2 --seed 1 sample.txt
randline screenshot
randline in action.

043 · sortuniq

sort and dedupe a file in place, with a backup

sortuniq unsorted.txt
sortuniq screenshot
sortuniq in action.

044 · csvjoin

join two CSVs on a key column

csvjoin --left-key id --right-key id left.csv right.csv
csvjoin screenshot
csvjoin in action.

045 · jsongrep

grep inside JSON values by key path

jsongrep --key '*.email' sample.json
jsongrep screenshot
jsongrep in action.

046 · loghist

histogram of log events by hour, parsed from timestamps

loghist sample.log
loghist screenshot
loghist in action.

047 · textstat

readability stats: sentences, average word length, estimated reading time

textstat sample.txt
textstat screenshot
textstat in action.

048 · hexpeek

hexdump with ASCII and highlighting of printable runs

hexpeek sample.txt
hexpeek screenshot
hexpeek in action.

049 · tailfollow

follow a file and show only lines matching a pattern, with running counts

tailfollow --from-start --timeout 1 ERROR sample.log
tailfollow screenshot
tailfollow in action.

050 · diffside

side-by-side diff of two files in the terminal, with color

diffside --no-color a.txt b.txt
diffside screenshot
diffside in action.

Slice C — System monitoring (25)

051 · cpugraph

live ASCII CPU usage graph per core, read from /proc/stat, with refresh

cpugraph --frames 1 --interval 0.2
cpugraph screenshot
cpugraph in action.

052 · memtop

top memory users with a bar chart, snapshot mode, sorted by RSS

memtop -n 3
memtop screenshot
memtop in action.

053 · proctree

process tree with CPU and memory per branch, collapsed by user

proctree --max-depth 2
proctree screenshot
proctree in action.

054 · loadhist

record load average over time into a log and show a sparkline history

loadhist --record --file ./loadhist.log
loadhist --show --file ./loadhist.log
loadhist screenshot
loadhist in action.

055 · swapwatch

which processes use swap, how much, and the trend since last check

swapwatch -n 3
swapwatch screenshot
swapwatch in action.

056 · zombiefind

find zombie processes and report their parents

zombiefind
zombiefind screenshot
zombiefind in action.

057 · fdleak

processes with the most open file descriptors, with growth since last check

fdleak -n 3
fdleak screenshot
fdleak in action.

058 · threadcount

processes with the most threads, top-N

threadcount -n 3
threadcount screenshot
threadcount in action.

059 · bootlog

boot time, uptime, and load since boot in one line

bootlog
bootlog screenshot
bootlog in action.

060 · cputemp

CPU temperature from /sys with a tiny history graph (graceful message if absent)

cputemp
cputemp screenshot
cputemp in action.

061 · fanwatch

fan speeds from /sys/hwmon when present, graceful message otherwise

fanwatch
fanwatch screenshot
fanwatch in action.

062 · prochist

record one process's CPU/mem over time (sampled) and plot it after it exits

prochist --pid 1 --samples 2 --interval 0.2
prochist screenshot
prochist in action.

063 · nicewatch

processes with unusual nice/priority values

nicewatch
nicewatch screenshot
nicewatch in action.

064 · oomscore

top processes by OOM score — who the kernel would kill first

oomscore -n 3
oomscore screenshot
oomscore in action.

065 · memfrag

memory fragmentation estimate from /proc/buddyinfo

memfrag
memfrag screenshot
memfrag in action.

066 · pressure

PSI (pressure stall information) reader with a human summary

pressure
pressure screenshot
pressure in action.

067 · schedtop

which processes are waiting on CPU (run queue) right now

schedtop
schedtop screenshot
schedtop in action.

068 · cpufreq

current CPU frequency per core, with min/max

cpufreq
cpufreq screenshot
cpufreq in action.

069 · sysnap

one-shot system snapshot: load, memory, top processes, disk, network in one report

sysnap
sysnap screenshot
sysnap in action.

070 · watchdog

watch a process and report (and optionally restart) when it dies or exceeds limits

watchdog --cmd "sleep 0.5" --checks 3 --interval 0.2
watchdog screenshot
watchdog in action.

071 · prockill

interactive kill by pattern with a dry-run preview first

prockill nosuchpattern123
prockill screenshot
prockill in action.

072 · memmap

one process's memory map summary (heap, stack, libraries) in human sizes

memmap 1
memmap screenshot
memmap in action.

073 · iowait

processes with high I/O wait, from /proc/stat and /proc/*/io

iowait --interval 0.2
iowait screenshot
iowait in action.

074 · topdisk

processes doing the most disk I/O right now (reads and writes)

topdisk -n 3 --interval 0.2
topdisk screenshot
topdisk in action.

075 · kernellog

tail the kernel log with severity colors and a filter

kernellog -n 3
kernellog screenshot
kernellog in action.

Slice D — Network monitoring (25)

076 · netgraph

live ASCII traffic graph per interface, from /proc/net/dev, with refresh

netgraph -n 2 -i 0.2 lo
netgraph screenshot
netgraph in action.

077 · nettop

per-process network usage, best-effort mapping from sockets to processes

nettop --once
nettop screenshot
nettop in action.

078 · portscan

which local ports are listening and what owns them

portscan --tcp
portscan screenshot
portscan in action.

079 · portwatch

watch a port and report when it opens or closes

portwatch 127.0.0.1 22 -t 2 -i 1
portwatch screenshot
portwatch in action.

080 · dnstime

measure DNS resolution time for a list of hosts

dnstime localhost -n 1
dnstime screenshot
dnstime in action.

081 · pingraph

ping a host and draw a latency graph over time

pingraph -c 2 -i 0.2 127.0.0.1
pingraph screenshot
pingraph in action.

082 · conntrack

count active TCP connections by state and by remote host

conntrack
conntrack screenshot
conntrack in action.

083 · bandwidth

total bytes in/out per interface since boot, with current rates

bandwidth lo -i 1
bandwidth screenshot
bandwidth in action.

084 · socklist

list sockets with process, state, and remote endpoint

socklist --tcp
socklist screenshot
socklist in action.

085 · wifisignal

Wi-Fi signal strength from /proc/net/wireless or iw, with fallback

wifisignal
wifisignal screenshot
wifisignal in action.

086 · ipinfo

all interfaces, IPs, MTU, and gateway in one table

ipinfo
ipinfo screenshot
ipinfo in action.

087 · latency

measure latency to several hosts and rank them

latency 127.0.0.1 -p 22 -n 1
latency screenshot
latency in action.

088 · nettrace

trace the route to a host with per-hop latency (ping TTL method)

nettrace -m 2 127.0.0.1
nettrace screenshot
nettrace in action.

089 · portfree

find the first free port in a range

portfree 8000 8010
portfree screenshot
portfree in action.

090 · connlog

log new connections over time (poll /proc/net/tcp) and report new/closed

connlog -i 1 -t 2
connlog screenshot
connlog in action.

091 · dnsleak

check which DNS servers are actually used (resolv.conf plus live tests)

dnsleak
dnsleak screenshot
dnsleak in action.

092 · netusage

per-interface usage by hour, from snapshot deltas stored in ~/.cache

netusage --snapshot --cache-dir cache
netusage --today --cache-dir cache
netusage screenshot
netusage in action.

093 · sshtest

test SSH connectivity to a host with timing and a banner grab

sshtest 127.0.0.1
sshtest screenshot
sshtest in action.

094 · httpcode

fetch a URL and report status, time, size, and redirect chain

httpcode --timeout 4 https://example.com
httpcode screenshot
httpcode in action.

095 · certcheck

a site's TLS certificate expiry date and issuer

certcheck example.com
certcheck screenshot
certcheck in action.

096 · netblock

which processes have the most sockets open

netblock
netblock screenshot
netblock in action.

097 · multicast

list multicast group memberships

multicast
multicast screenshot
multicast in action.

098 · arpwatch

ARP table entries with MAC, IP, and interface

arpwatch
arpwatch screenshot
arpwatch in action.

099 · netdown

diagnose network health: gateway, DNS, and internet, with a verdict

netdown
netdown screenshot
netdown in action.

100 · trafficlog

record interface byte counts every minute into a CSV and show daily totals

trafficlog --once --file traffic.csv
trafficlog --today --file traffic.csv
trafficlog screenshot
trafficlog in action.

Slice E — Disk & storage (25)

101 · diskgraph

ASCII bar chart of disk usage by mount point

diskgraph
diskgraph screenshot
diskgraph in action.

102 · bigdirs

largest directories in a tree, top-N, with a tree view

bigdirs -n 5 .
bigdirs screenshot
bigdirs in action.

103 · inodehunt

directories consuming the most inodes (many small files)

inodehunt -n 5 .
inodehunt screenshot
inodehunt in action.

104 · diskfill

estimate days until a disk fills, from recent growth snapshots

diskfill snapshot --db diskfill.csv /
diskfill --db diskfill.csv
diskfill screenshot
diskfill in action.

105 · fscheck

filesystem type, mount options, and free space per mount in one table

fscheck
fscheck screenshot
fscheck in action.

106 · trimcheck

whether TRIM is enabled/supported, from /sys, with graceful fallback

trimcheck
trimcheck screenshot
trimcheck in action.

107 · diskage

files by age on a disk — what is old and big

diskage -n 5 .
diskage screenshot
diskage in action.

108 · mountlist

all mounts with type, size, free space, and ro/rw flag

mountlist
mountlist screenshot
mountlist in action.

109 · diskbench

simple write/read speed test on a directory (temp file, cleaned up)

diskbench --size 1 .
diskbench screenshot
diskbench in action.

110 · spacereport

full disk-space report: mounts, top directories, top files, growth

spacereport --top 5 .
spacereport screenshot
spacereport in action.

111 · cacheclean

clear user caches safely (~/.cache, pip, npm) with sizes reclaimed

cacheclean --home .
cacheclean screenshot
cacheclean in action.

112 · snapdiff

compare two disk-usage snapshots and show what grew

snapdiff snapshot -o snap1.json .
echo new > newfile.txt
snapdiff snapshot -o snap2.json .
snapdiff diff snap1.json snap2.json
snapdiff screenshot
snapdiff in action.

113 · filetypes

disk usage by file extension in a tree (which types eat the disk)

filetypes .
filetypes screenshot
filetypes in action.

114 · emptybig

find large files that are mostly zeros (sparse files)

emptybig .
emptybig screenshot
emptybig in action.

115 · disktemp

disk temperature from SMART if smartctl is present, else /sys, else a clear message

disktemp
disktemp screenshot
disktemp in action.

116 · raidcheck

MD RAID status from /proc/mdstat when present

raidcheck
raidcheck screenshot
raidcheck in action.

117 · diskio

per-device I/O stats from /proc/diskstats with rates

diskio
diskio screenshot
diskio in action.

118 · mountwatch

watch for mount/unmount events by polling /proc/mounts

mountwatch --duration 1 --interval 0.5
mountwatch screenshot
mountwatch in action.

119 · quota

disk quota usage when set, otherwise free space

quota
quota screenshot
quota in action.

120 · logrotate

tiny log rotator: compress old logs, keep N generations

logrotate --dry-run --force logs/
logrotate screenshot
logrotate in action.

121 · backupcheck

verify a backup tree matches its source by hash, report missing/changed

cp -r src/ backup2/
backupcheck src/ backup2/
backupcheck screenshot
backupcheck in action.

122 · synccheck

dry-run rsync-style diff between two directories (what would change)

synccheck src/ dst/
synccheck screenshot
synccheck in action.

123 · diskalarm

alert when a mount crosses a usage threshold, with a one-line report

diskalarm --threshold 99
diskalarm screenshot
diskalarm in action.

124 · fatfree

find files larger than X in a tree and suggest moving them

fatfree --min-size 1K .
fatfree screenshot
fatfree in action.

125 · treemap

ASCII treemap of disk usage by directory (nested bars)

treemap --depth 2 .
treemap screenshot
treemap in action.

Slice F — Archives, conversion, checksums, metadata (25)

126 · zipls

list zip archive contents with sizes, without extracting

zipls pack.zip
zipls screenshot
zipls in action.

127 · tarpeek

list tar/tar.gz contents with a summary

tarpeek sample.tar.gz
tarpeek screenshot
tarpeek in action.

128 · archratio

compression ratio of the archives in a directory

archratio .
archratio screenshot
archratio in action.

129 · zipcheck

verify archive integrity and report the broken ones

zipcheck pack.zip
zipcheck screenshot
zipcheck in action.

130 · archconv

convert an archive between zip and tar.gz, with verification

archconv --to tar.gz pack.zip
archconv screenshot
archconv in action.

131 · hashfile

hash a file with several algorithms at once (md5/sha1/sha256) in one pass

hashfile sample.txt
hashfile screenshot
hashfile in action.

132 · hashdir

hash a whole tree and write a manifest

hashdir .
hashdir screenshot
hashdir in action.

133 · verifyhash

verify files against a checksum file (sha256sum format)

sha256sum sample.txt a.txt > manifest.txt
verifyhash manifest.txt
verifyhash screenshot
verifyhash in action.

134 · metaread

file metadata in one view: type, size, times, permissions, xattrs

metaread sample.txt
metaread screenshot
metaread in action.

135 · metacopy

copy timestamps and permissions from one file to another

metacopy a.txt b.txt
metaread b.txt
metacopy screenshot
metacopy in action.

136 · touchdate

set a file's mtime to a given date, or copy it from another file

touchdate --date 2020-01-15 b.txt
fileage b.txt
touchdate screenshot
touchdate in action.

137 · permfix

normalize permissions (files 644, dirs 755) with a preview and an undo list

permfix .
permfix screenshot
permfix in action.

138 · ownfix

report files in a tree not owned by the current user

ownfix .
ownfix screenshot
ownfix in action.

139 · execfix

find scripts without the executable bit, or with it but no shebang

execfix .
execfix screenshot
execfix in action.

140 · csv2json

convert a flat CSV file to JSON

csv2json sample.csv
csv2json screenshot
csv2json in action.

141 · json2csv

convert a flat JSON array to CSV

json2csv sample.json
json2csv screenshot
json2csv in action.

142 · json2yaml

convert JSON to YAML (small built-in emitter, stdlib only)

json2yaml sample.json
json2yaml screenshot
json2yaml in action.

143 · xml2json

convert simple XML to JSON

xml2json sample.xml
xml2json screenshot
xml2json in action.

144 · base64file

base64 encode/decode files, with a check round-trip

base64file sample.txt encoded.b64
base64file screenshot
base64file in action.

145 · hexfile

hex encode/decode files

hexfile --dump sample.txt
hexfile screenshot
hexfile in action.

146 · urlfile

URL-encode/decode a file or a string

urlfile --string "hello world"
urlfile screenshot
urlfile in action.

147 · bomfix

detect, strip, or add a BOM in text files

bomfix bom.txt
bomfix screenshot
bomfix in action.

148 · charset

detect a file's encoding (UTF-8/16/32, latin-1) with a confidence note

charset sample.txt latin1.txt
charset screenshot
charset in action.

149 · bin2txt

encode a binary file as text (base64/hex) with a decode header

bin2txt sample.bin encoded.txt
bin2txt screenshot
bin2txt in action.

150 · txt2bin

decode a bin2txt file back to binary

bin2txt sample.bin encoded.txt
txt2bin encoded.txt decoded.bin
txt2bin screenshot
txt2bin in action.

Slice G — Termux/Android (25)

151 · txbattery

battery status (termux-battery-status, /sys fallback)

txbattery
txbattery screenshot
txbattery in action.

152 · txclip

clipboard get/set (termux-clipboard-get/set)

txclip set hello
txclip screenshot
txclip in action.

153 · txnotify

send an Android notification (termux-notification)

txnotify -t "Backup done" -c "All files copied" --dry-run
txnotify screenshot
txnotify in action.

154 · txstorage

storage info (termux-storage, df fallback)

txstorage
txstorage screenshot
txstorage in action.

155 · txvibrate

vibrate the device (termux-vibrate)

txvibrate 200 --dry-run
txvibrate screenshot
txvibrate in action.

156 · txtorch

torch on/off (termux-torch)

txtorch on --dry-run
txtorch screenshot
txtorch in action.

157 · txwifi

Wi-Fi connection info (termux-wifi-connectioninfo)

txwifi
txwifi screenshot
txwifi in action.

158 · txwallpaper

set the wallpaper from an image (termux-wallpaper)

txwallpaper photo.jpg --dry-run
txwallpaper screenshot
txwallpaper in action.

159 · txcontact

look up a contact by name (termux-contact-list)

txcontact ada
txcontact screenshot
txcontact in action.

160 · txsms

list recent SMS messages with a count (termux-sms-list)

txsms -n 3
txsms screenshot
txsms in action.

161 · txcall

list recent calls (termux-call-log)

txcall -n 3
txcall screenshot
txcall in action.

162 · txlocation

current location with a timeout (termux-location)

txlocation --provider gps --timeout 2
txlocation screenshot
txlocation in action.

163 · txshare

share a file via the Android share sheet (termux-share)

txshare sample.txt --dry-run
txshare screenshot
txshare in action.

164 · txopen

open a file with its default app (termux-open)

txopen sample.txt --dry-run
txopen screenshot
txopen in action.

165 · txsensors

list sensors and their current values (termux-sensor)

txsensors -l
txsensors screenshot
txsensors in action.

166 · txscan

trigger a media scan of a file or directory (termux-media-scan)

txscan sample.txt --dry-run
txscan screenshot
txscan in action.

167 · txbrightness

set screen brightness (termux-brightness)

txbrightness 50% --dry-run
txbrightness screenshot
txbrightness in action.

168 · txvolume

show and set volume levels (termux-volume)

txvolume music
txvolume screenshot
txvolume in action.

169 · txtts

speak text out loud (termux-tts-speak)

txtts --dry-run Hello world
txtts screenshot
txtts in action.

170 · txdialog

show a dialog and return the choice (termux-dialog)

txdialog confirm -t "Delete file?" --dry-run
txdialog screenshot
txdialog in action.

171 · txwake

acquire/release a wake lock (termux-wake-lock/unlock)

txwake status --dry-run
txwake screenshot
txwake in action.

172 · txusb

list USB devices (termux-usb-list)

txusb
txusb screenshot
txusb in action.

173 · txtelephony

telephony and device info (termux-telephony-deviceinfo)

txtelephony
txtelephony screenshot
txtelephony in action.

174 · txdownload

download a file into Downloads (termux-download)

txdownload --dry-run https://example.com/file.zip
txdownload screenshot
txdownload in action.

175 · txtermux

Termux environment report: version, storage, API availability, health check

txtermux
txtermux screenshot
txtermux in action.

Slice H — Time, dates, units, converters, generators (25)

176 · datecalc

date arithmetic: add/subtract days, difference between dates, weekday

datecalc 2026-01-01 --add 10
datecalc screenshot
datecalc in action.

177 · epoch

convert between epoch seconds and human dates, both ways

epoch 1700000000
epoch screenshot
epoch in action.

178 · countdown

countdown to a date with a live display

countdown 90s --once
countdown screenshot
countdown in action.

179 · stopwatch

terminal stopwatch with laps

stopwatch --duration 1
stopwatch screenshot
stopwatch in action.

180 · pomodoro

pomodoro timer with work/break cycles and a session log

pomodoro --work 0.02 --break 0 --cycles 1 --no-log
pomodoro screenshot
pomodoro in action.

181 · unitconv

convert units (length, weight, temperature, data) with a table

unitconv 5 km mi
unitconv screenshot
unitconv in action.

182 · dataconv

convert data sizes (B/KB/MB/GB, bits/bytes, MiB vs MB)

dataconv 1 GiB --to MB
dataconv screenshot
dataconv in action.

183 · tempconv

temperature converter (C/F/K) with a conversion table

tempconv 100 C --to F
tempconv screenshot
tempconv in action.

184 · passgen

generate passwords (length, symbols, word mode)

passgen --length 12 --seed 1
passgen screenshot
passgen in action.

185 · dice

roll dice with notation (3d6+2) and a roll history

dice 3d6+2 --seed 7
dice screenshot
dice in action.

186 · randpick

pick a random item from a list or a file

randpick apple banana cherry --seed 1
randpick screenshot
randpick in action.

187 · randnum

random numbers in a range, with an optional seed

randnum 1 10 --seed 1
randnum screenshot
randnum in action.

188 · uuidgen

generate UUIDs (v4) and short ids

uuidgen --count 2
uuidgen screenshot
uuidgen in action.

189 · colorpick

pick and convert colors (hex/rgb/hsl) and show a terminal swatch

colorpick '#ff8800' --no-swatch
colorpick screenshot
colorpick in action.

190 · morse

text to Morse code and back

morse SOS
morse screenshot
morse in action.

191 · braille

text to Braille unicode and back

braille hello
braille screenshot
braille in action.

192 · baseconv

convert numbers between bases (2/8/10/16/36)

baseconv 255 16
baseconv screenshot
baseconv in action.

193 · romannum

convert to and from Roman numerals

romannum 2026
romannum screenshot
romannum in action.

194 · timesheet

log time spent on tasks, with a daily summary

timesheet --file ./ts.csv start demo
timesheet --file ./ts.csv stop
timesheet --file ./ts.csv summary
timesheet screenshot
timesheet in action.

195 · agecalc

age from a birthdate: years, days lived, next birthday

agecalc 1990-05-15
agecalc screenshot
agecalc in action.

196 · workdays

count working days between two dates (weekends excluded)

workdays 2026-01-01 2026-01-31
workdays screenshot
workdays in action.

197 · tzconv

convert a time between time zones (built-in zone table, system tzdata when present)

tzconv 14:30 UTC America/New_York
tzconv screenshot
tzconv in action.

198 · speedconv

speed converter (km/h, mph, m/s, knots)

speedconv 100 --to mph
speedconv screenshot
speedconv in action.

199 · currconv

currency converter with an editable offline rate file

currconv 10 USD EUR
currconv screenshot
currconv in action.

200 · quote

quote of the day (built-in list, deterministic by date)

quote --number 1
quote screenshot
quote in action.

Slice I — Dev & shell helpers (25)

201 · gitstat

one-page git repo summary: branch, status counts, recent commits, stashes

gitstat .
gitstat screenshot
gitstat in action.

202 · gitclean

find and remove stale git branches (merged, or with no upstream) with a preview

gitclean .
gitclean screenshot
gitclean in action.

203 · gitlog

pretty log with a graph and per-commit file stats, filtered by author/date

gitlog -n 3 .
gitlog screenshot
gitlog in action.

204 · cronlist

list cron jobs with a human-readable explanation of each schedule

cronlist --file crontab.txt
cronlist screenshot
cronlist in action.

205 · croncheck

validate a cron expression and show the next run times

croncheck "0 9 * * 1-5"
croncheck screenshot
croncheck in action.

206 · sshkeys

list SSH keys, their fingerprints, and which are loaded in the agent

sshkeys --dir sshdir
sshkeys screenshot
sshkeys in action.

207 · sshhost

known-hosts report with fingerprints

sshhost --file ssh_known_hosts
sshhost screenshot
sshhost in action.

208 · tmuxls

tmux/screen sessions with a summary, graceful fallback when absent

tmuxls
tmuxls screenshot
tmuxls in action.

209 · tmuxsave

save and restore a tmux session layout (best effort)

tmuxsave list
tmuxsave screenshot
tmuxsave in action.

210 · pkglist

list installed packages (apt/dpkg or pacman) with sizes, top-N

pkglist --top 5
pkglist screenshot
pkglist in action.

211 · pkgsearch

search installed packages by name or description

pkgsearch --limit 5 bash
pkgsearch screenshot
pkgsearch in action.

212 · envdiff

compare environment variables between two shells, or a file and the current env

envdiff env1.env env2.env
envdiff screenshot
envdiff in action.

213 · pathclean

show PATH entries, flag duplicates and missing directories, print a cleaned PATH

pathclean --path /usr/bin:/bin:/usr/bin
pathclean screenshot
pathclean in action.

214 · aliaslist

list shell aliases and functions with their definitions

aliaslist --file aliases.sh
aliaslist screenshot
aliaslist in action.

215 · histstat

shell history statistics: most-used commands, usage by hour

histstat -f history.txt
histstat screenshot
histstat in action.

216 · scriptcheck

syntax-check all shell scripts in a directory (bash -n) and report

scriptcheck .
scriptcheck screenshot
scriptcheck in action.

217 · pycheck

syntax-check Python files (py_compile) and report

pycheck .
pycheck screenshot
pycheck in action.

218 · todo

find TODO/FIXME/XXX comments in a tree, with counts by file

todo .
todo screenshot
todo in action.

219 · codelines

count code lines by language in a tree

codelines .
codelines screenshot
codelines in action.

220 · gitdiffstat

diff stats between two refs with a per-file table

gitdiffstat HEAD~1 HEAD .
gitdiffstat screenshot
gitdiffstat in action.

221 · branchage

age of git branches, sorted, with last commit

branchage .
branchage screenshot
branchage in action.

222 · stashlist

list stashes with a summary of their contents

stashlist .
stashlist screenshot
stashlist in action.

223 · repocheck

health check for a git repo: uncommitted, untracked, ahead/behind, large files

repocheck .
repocheck screenshot
repocheck in action.

224 · maketool

scaffold a new utility: template file plus a test stub

maketool --dir . demotool
maketool screenshot
maketool in action.

225 · benchcmd

benchmark a command's runtime over N runs (average, min, max)

benchcmd -n 2 echo hi
benchcmd screenshot
benchcmd in action.

Slice J — Fun, creative, novel concepts (25)

226 · banner

ASCII banner text with several built-in fonts (no figlet dependency)

banner hello
banner screenshot
banner in action.

227 · fortune

random fortune with categories (built-in list)

fortune --seed 1
fortune screenshot
fortune in action.

228 · motd

generate a message of the day from live system stats plus a quote

motd
motd screenshot
motd in action.

229 · typing

typing speed test in the terminal

typing --auto --seed 1
typing screenshot
typing in action.

230 · quiz

tiny quiz game with built-in questions and a score

quiz -n 2 --auto --seed 1
quiz screenshot
quiz in action.

231 · hangman

hangman game in the terminal

hangman --auto --word test
hangman screenshot
hangman in action.

232 · memory

memory matching game in the terminal

memory --auto --seed 1
memory screenshot
memory in action.

233 · maze

generate a random ASCII maze

maze -w 10 -H 5 --seed 1
maze screenshot
maze in action.

234 · life

Conway's Game of Life in the terminal for a few generations

life -g 3 --pattern glider --delay 0
life screenshot
life in action.

235 · starfield

short animated starfield (frame-limited, so it always exits)

starfield --frames 2 --seed 1 --delay 0
starfield screenshot
starfield in action.

236 · clock

big ASCII clock, live, with a duration limit

clock --duration 1 --no-clear
clock screenshot
clock in action.

237 · calendar

month calendar with today highlighted and events read from a file

calendar --month 1 --year 2026
calendar screenshot
calendar in action.

238 · moonphase

moon phase calculator from the date (algorithmic, no network)

moonphase --date 2026-01-01
moonphase screenshot
moonphase in action.

239 · sunrise

sunrise/sunset calculator for a given latitude/longitude (algorithmic)

sunrise --lat 21.3 --lon -157.8 --date 2026-01-01
sunrise screenshot
sunrise in action.

240 · passphrase

generate a passphrase from a built-in wordlist

passphrase --seed 1
passphrase screenshot
passphrase in action.

241 · anagram

find anagrams of a word from a built-in wordlist

anagram listen
anagram screenshot
anagram in action.

242 · palindrome

check palindromes and find the longest palindromic substring

palindrome racecar
palindrome screenshot
palindrome in action.

243 · lorem

generate lorem ipsum text (N paragraphs)

lorem -p 1 --seed 1
lorem screenshot
lorem in action.

244 · fakeuser

generate a fake user profile (name, email, address) for testing

fakeuser --seed 1
fakeuser screenshot
fakeuser in action.

245 · fakelog

generate fake log lines for testing log tools

fakelog -n 3 --seed 1
fakelog screenshot
fakelog in action.

246 · fakedata

generate fake CSV data (names, ages, cities) for testing

fakedata -n 3 --seed 1
fakedata screenshot
fakedata in action.

247 · timer

simple countdown timer with a message at the end

timer --seconds 2 --message done --quiet
timer screenshot
timer in action.

248 · alarm

set an alarm (sleep, then a beep and a message)

alarm --in 1s --message test --quiet
alarm screenshot
alarm in action.

249 · focus

focus session tracker: start/stop, log, daily total

focus start demo
focus status
focus stop
focus today
focus screenshot
focus in action.

250 · namegen

generate creative names for projects, pets, or bands from combinable word lists

namegen --kind pet --count 3 --seed 1
namegen screenshot
namegen in action.

Slice K — More monitors: temperature, CPU & memory (25)

251 · tempgraph

live CPU temperature sparkline over time

tempgraph --mock --count 3 --interval 0.2
tempgraph screenshot
tempgraph in action.

252 · coretemp

per-core temperature table with mini sparklines

coretemp --mock --count 3 --interval 0.2
coretemp screenshot
coretemp in action.

253 · gputemp

GPU temperature graph

gputemp --mock --count 3 --interval 0.2
gputemp screenshot
gputemp in action.

254 · temphist

log temperatures and render history as an ASCII graph

temphist --mock --samples 3 --log ./temphist.log
temphist graph --log ./temphist.log
temphist screenshot
temphist in action.

255 · tempzones

all thermal zones side-by-side with sparklines

tempzones --mock --count 3 --interval 0.2
tempzones screenshot
tempzones in action.

256 · tempdelta

temperature rate of change in degC/min per zone

tempdelta --mock
tempdelta screenshot
tempdelta in action.

257 · tempalarm

alert when any temperature crosses a threshold

tempalarm --mock
tempalarm screenshot
tempalarm in action.

258 · tempfan

temperature vs fan speed correlation plot

tempfan --mock --count 3 --interval 0.2
tempfan screenshot
tempfan in action.

259 · tempthrottle

detect thermal throttling from MHz drop + temperature

tempthrottle --mock
tempthrottle screenshot
tempthrottle in action.

260 · tempdiff

temperature before vs after running a command

tempdiff --mock -- true
tempdiff screenshot
tempdiff in action.

261 · tempmax

session high-water marks: max temperature per zone

tempmax --mock --count 3 --interval 0.2
tempmax screenshot
tempmax in action.

262 · tempslope

predict minutes to throttle from the current heating slope

tempslope --mock --count 3 --interval 0.2
tempslope screenshot
tempslope in action.

263 · corebars

per-core CPU usage bars, live, one line per core

corebars --count 2 --interval 0.2
corebars screenshot
corebars in action.

264 · cpushare

CPU time split user/system/iowait/idle as stacked bars

cpushare --count 2 --interval 0.2
cpushare screenshot
cpushare in action.

265 · cpusteal

steal time monitor for VMs with history graph

cpusteal --count 2 --interval 0.2
cpusteal screenshot
cpusteal in action.

266 · irqtop

top interrupt consumers from /proc/interrupts and /proc/stat

irqtop --top 3 --count 2 --interval 0.2
irqtop screenshot
irqtop in action.

267 · ctxwatch

context switch rate monitor

ctxwatch --count 2 --interval 0.2
ctxwatch screenshot
ctxwatch in action.

268 · cpuidle

per-core idle and C-state time monitor

cpuidle --count 2 --interval 0.2
cpuidle screenshot
cpuidle in action.

269 · runq

run queue length history graph

runq --count 2 --interval 0.2
runq screenshot
runq in action.

270 · cpuburst

detect CPU bursts and log them with process attribution

cpuburst --count 2 --interval 0.2
cpuburst screenshot
cpuburst in action.

271 · memleak

watch a process RSS growth over time and flag leaks

memleak 1 --seconds 1 --interval 0.2
memleak screenshot
memleak in action.

272 · swaphist

swap in/out history graph

swaphist --count 2 --interval 0.2
swaphist screenshot
swaphist in action.

273 · slabwatch

slab allocator top consumers

slabwatch --top 3
slabwatch screenshot
slabwatch in action.

274 · pagereclaim

page reclaim and major fault rate monitor

pagereclaim --count 2 --interval 0.2
pagereclaim screenshot
pagereclaim in action.

275 · psigraph

PSI (pressure stall information) graphs for CPU/memory/IO

psigraph --count 2 --interval 0.2
psigraph screenshot
psigraph in action.

Slice L — More monitors: disk, network & process (25)

276 · hugewatch

huge page usage monitor

hugewatch
hugewatch screenshot
hugewatch in action.

277 · cachehit

page cache hit ratio estimate monitor

cachehit --count 2 --interval 0.2
cachehit screenshot
cachehit in action.

278 · iolat

per-disk IO latency histogram from /proc/diskstats deltas

iolat --count 2 --interval 0.2
iolat screenshot
iolat in action.

279 · iodepth

IO queue depth monitor

iodepth --count 2 --interval 0.2
iodepth screenshot
iodepth in action.

280 · diskrate

per-disk read/write rate bars, live

diskrate --count 2 --interval 0.2
diskrate screenshot
diskrate in action.

281 · fswatch

filesystem write volume per mount point

fswatch --count 2 --interval 0.2
fswatch screenshot
fswatch in action.

282 · ioproc

top processes by IO with live delta rates

ioproc --top 3 --count 2 --interval 0.2
ioproc screenshot
ioproc in action.

283 · diskbusy

disk busy percentage per device graph

diskbusy --count 2 --interval 0.2
diskbusy screenshot
diskbusy in action.

284 · trimwatch

TRIM/discard activity monitor from /proc/diskstats

trimwatch --count 2 --interval 0.2
trimwatch screenshot
trimwatch in action.

285 · netlat

latency to multiple hosts graphed over time

netlat 127.0.0.1 --count 2 --interval 0.2
netlat screenshot
netlat in action.

286 · neterr

interface error and drop counter monitor

neterr --count 2 --interval 0.2
neterr screenshot
neterr in action.

287 · socktop

top sockets by state (ESTABLISHED/TIME_WAIT counts)

socktop --top 3 --count 2 --interval 0.2
socktop screenshot
socktop in action.

288 · portflow

per-port traffic rates (which local port is busy)

portflow --top 3 --count 2 --interval 0.2
portflow screenshot
portflow in action.

289 · dnswatch

DNS query latency monitor with graph

dnswatch --count 2 --interval 0.2
dnswatch screenshot
dnswatch in action.

290 · netqueue

interface queue/backlog monitor (drops, qdisc)

netqueue --count 2 --interval 0.2
netqueue screenshot
netqueue in action.

291 · wifigraph

WiFi signal strength graph over time

wifigraph --mock --count 3 --interval 0.2
wifigraph screenshot
wifigraph in action.

292 · netretrans

TCP retransmit rate monitor

netretrans --count 2 --interval 0.2
netretrans screenshot
netretrans in action.

293 · procmem

top processes by memory with tree grouping

procmem --top 3
procmem screenshot
procmem in action.

294 · proccpu

top processes by CPU with per-PID history sparklines

proccpu --top 3 --count 2 --interval 0.2
proccpu screenshot
proccpu in action.

295 · procage

longest-running processes with age and start time

procage --top 3
procage screenshot
procage in action.

296 · procstate

process counts by state (R/S/D/Z/T) graphed over time

procstate --count 2 --interval 0.2
procstate screenshot
procstate in action.

297 · procfork

fork rate monitor (new processes per second)

procfork --count 2 --interval 0.2
procfork screenshot
procfork in action.

298 · procrestart

detect processes that restart frequently

procrestart --mock --count 2 --interval 0.2
procrestart screenshot
procrestart in action.

299 · gpuload

GPU utilization and memory graph

gpuload --mock --count 3 --interval 0.2
gpuload screenshot
gpuload in action.

300 · gpuproc

top processes by GPU memory

gpuproc --mock --top 3
gpuproc screenshot
gpuproc in action.

Slice M — More monitors: GPU, power & system (10)

301 · gpupower

GPU power draw graph

gpupower --mock --count 3 --interval 0.2
gpupower screenshot
gpupower in action.

302 · batgraph

battery charge/discharge graph over time

batgraph --mock --count 3 --interval 0.2
batgraph screenshot
batgraph in action.

303 · wattwatch

power draw estimate in watts

wattwatch --mock --count 3 --interval 0.2
wattwatch screenshot
wattwatch in action.

304 · suspendwatch

suspend/resume event log monitor

suspendwatch --mock
suspendwatch screenshot
suspendwatch in action.

305 · loadspike

detect load spikes, log top processes at the moment

loadspike --mock --threshold 2 --seconds 2 --interval 0.2
loadspike screenshot
loadspike in action.

306 · bootchart

boot time breakdown from dmesg/systemd timestamps

bootchart
bootchart screenshot
bootchart in action.

307 · kerneltop

top kernel threads by CPU

kerneltop
kerneltop screenshot
kerneltop in action.

308 · fdgraph

open file descriptor count history graph per process

fdgraph --mock --count 3 --interval 0.2
fdgraph screenshot
fdgraph in action.

309 · lockwatch

detect processes stuck in uninterruptible sleep (D-state)

lockwatch
lockwatch screenshot
lockwatch in action.

310 · sysdash

combined mini-dashboard: CPU, memory, disk, net, temp

sysdash
sysdash screenshot
sysdash in action.

Go get it

One clone, one make, 310 tools — including 110 monitors (system, network, temperature, CPU, memory, disk, process, GPU, power and more) that turn a phone or a spare box into a proper observability station. The repo is the documentation: every utility has a description, a worked example and a screenshot, and the test suite proves each one runs. Start here:

GitHub - cnmcdee/util_box: 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.

And if you like the idea of files that repair themselves, this blog's home project is worth a look too:

GitHub - cnmcdee/lzply: lz compression combined with BCH Polynomial FEC. Files/mounts that can repair themselves.
lz compression combined with BCH Polynomial FEC. Files/mounts that can repair themselves. - cnmcdee/lzply

util_box is at github.com/cnmcdee/util_box (master 9687244 at time of writing). Screenshots in this article are served from the repo itself.

Linux Rocks Every Day