qmetrics.net

witr

CLI and TUI for tracing why processes run

witr screenshot

Witr traces processes, ports, containers, and file locks back to the chain that started them. It outputs a readable report, JSON for scripts, or an interactive terminal dashboard.

Overview

Witr answers whether something on a system is running and why. It targets processes, services, ports, containers, and locked files when the cause spans supervisors, containers, shells, or other layers.

Ordinary tools such as ps, lsof, ss, systemctl, and docker ps show state but leave users to correlate outputs by hand. Witr makes causality explicit: for a given target it reports what is running, how it started, what keeps it alive, and what context it belongs to.

One command can produce a standard report, short or tree views, environment details, warnings-only output, or machine-readable JSON. Exit codes distinguish clean matches, warnings, not found, and other outcomes for use in scripts and automation. Coding agents can rely on --json and documented exit semantics instead of chaining several lookup utilities.

Running without targets or with -i opens an interactive TUI with tabs for processes, ports, containers, and file locks, including ancestry trees, container runtimes across Docker, Podman, Kubernetes tooling, LXC family, and jails, plus optional signals and renice from the UI on Unix.

Installers ship a single static binary for Linux, macOS, FreeBSD, and Windows, with package managers, npm, and manual options. A browser playground offers a guided tutorial on a simulated Linux host without local install.

Key features

  • Trace PID ancestry and startup chain
  • Map ports and services to owning processes
  • Lookup containers across many runtimes
  • Resolve file locks to holding processes
  • JSON output for scripts and agents
  • Interactive TUI with live refresh
  • Meaningful exit codes for automation
  • Shell tab completion for flags

Use cases

  • Debugging ports already in use
  • Incident response on servers
  • Finding what started a stray process
  • Inspecting container provenance
  • Agent-driven system troubleshooting

Tags

Similar software

Btop++

Terminal resource monitor for CPU memory and disks

Btop++ is a C++ terminal monitor for processor, memory, disk, network, and process stats with mouse support. It continues the bashtop and bpytop lineage with optional GPU metrics on supported builds.

★ 35.5k⟳ 3 days agoApache-2.0
TerminalsDesktop/CLI app

K9s

Terminal UI for navigating and operating Kubernetes clusters

K9s watches Kubernetes clusters and provides a full-screen terminal interface to inspect resources, run management commands, and customize views.

★ 35.1k⟳ 7 days agoApache-2.0
TerminalsDesktop/CLI app

WTF

Terminal personal dashboard for at-a-glance devops stats

WTF (wtfutil) is a terminal dashboard that surfaces infrequently needed personal and work metrics in one screen inside your shell.

★ 17.2k⟳ 1 month agoMPL-2.0
TerminalsDesktop/CLI app

Bottom

Cross-platform graphical terminal system and process monitor

Bottom (btm) is a customizable graphical process and system monitor for the terminal. It supports Linux, macOS, and Windows.

★ 14.3k⟳ todayMIT
TerminalsDesktop/CLI app

macmon

Sudoless Apple Silicon system monitor and metrics library

macmon reports real-time CPU, GPU, and ANE power, temperatures, and memory on Apple Silicon Macs without root. It offers a TUI, JSON and Prometheus output, and a Rust library.

★ 2.2k⟳ 4 days agoMIT
TerminalsDesktop/CLI app

AdGuardian Term

Terminal dashboard for live AdGuard Home DNS traffic stats

An unofficial terminal UI that connects to AdGuard Home and shows real-time DNS queries, blocks, and network statistics.

★ 1.7k⟳ 14 days agoMIT
TerminalsDesktop/CLI app