prt
prt is a real-time terminal interface for discovering which processes own network ports on macOS and Linux. It adds filtering, lifecycle tracking, process details, network topology, SSH tunnels, alerts, and automation-friendly output to the usual lsof or /proc snapshot.
View a static demo frame · Read the demo transcript · Open the full documentation
Install
Requirements: Rust 1.88+ for Cargo installation; macOS 10.15+ with lsof, or Linux with /proc.
Homebrew: brew install rekurt/tap/prt. Linux x86_64 DEB/RPM and archives for Linux/macOS are available in v0.6.0; Linux binaries require glibc 2.35+. Verify downloads against the release SHA256SUMS.
SSH tunnels support editing, real status, uptime, listener health (including intermittent flapping), command copying, and automatic reconnect.
Command-line modes
Use --export for a finite snapshot and --json for a continuous stream.
Interface
Tab/Shift+Tab: Connections, Processes, and SSH sections?: complete in-app help:: searchable command palette/: search and filterSpace: contextual actionsEnter: open the selected processd: toggle the Connections details panel[/]: switch Processes or SSH sub-tabsp: pause or resume automatic refreshL: switch language
The TUI is keyboard-driven. A static preview and text transcript are provided for readers who prefer not to view an autoplaying animation. JSON, CSV, NDJSON, and watch modes provide non-full-screen alternatives.
Crate layout
This binary crate contains the clap CLI, ratatui interface, input handling, NDJSON and watch modes, system-call tracing, and SSH tunnel management. Scanning and domain logic live in prt-core.