A terminal user interface (TUI) tool for monitoring, analyzing, and managing network connections in real time.
The main view provides a two-pane layout:
- Left Pane: Live-updating list of connections
- Right Pane: Detailed information for the selected connection
This design makes it easy to monitor and analyze network activity efficiently.
- Auto-refreshes the connection list every few seconds
- Real-time filtering (
/to filter by process name, PID, status, or address) - Color-coded connection states (
ESTABLISHED,LISTEN,CLOSE_WAIT, etc.)
- View all connections and details simultaneously
- Column sorting:
- Press
s→ cycle through sortable columns - Press
S→ toggle ascending/descending order
- Press
k→ Gracefully kill process for selected connectionK→ Force kill withSIGKILL
p→ Ping remote address in a live modal overlay
e→ Default export visible connections toBatStat_export.csvor Custom choose the path and file name
h→ Toggle a detailed, colorful panel with all keybindings
Requires Go 1.25+.
Latest verison:
go install github.com/MrBrooks89/BatStat/cmd/BatStat@latestOr Specific version:
go install github.com/MrBrooks89/BatStat/cmd/[email protected]Make sure your GOPATH/bin is in your $PATH:
👉 Go Wiki: Setting GOPATH
Run BatStat:
BatStatPress h at any time for a full list of keybindings.
PRs are welcome!
- Open an issue for bugs or feature requests
- Fork and submit a pull request
MIT License — see LICENSE.