Snitch – a friendly netstat alternative for humans
4 months ago
- #network-monitoring
- #command-line-tool
- #TUI
- Snitch is a user-friendly alternative to netstat for inspecting network connections with a clean TUI or styled tables.
- Installation options include using Go, Nix, Yay, Paru, or a direct download from releases for Linux and macOS.
- The tool offers interactive TUI with live-updating connection lists, one-shot table output, and JSON output for scripting.
- Key features include filtering by connection type (TCP/UDP), state (listening/established), and customizable refresh intervals.
- Snitch provides keybindings for navigation, sorting, toggling connection types, and process monitoring.
- For scripting, Snitch can output in JSON or CSV formats and supports streaming JSON frames at specified intervals.
- Configuration is possible via a TOML file, allowing defaults like numeric output and theme selection.
- On Linux, Snitch reads from `/proc/net/*` and may require root or `CAP_NET_ADMIN` for full process info. On macOS, it uses system APIs and may need sudo.