prt 0.6.0

Live network port inspector for macOS and Linux with process details, SSH tunnel health, alerts and JSON/CSV export
prt-0.6.0 is not a library.

prt

Crates.io CI MIT License

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

cargo install prt --version 0.6.0 --locked
prt

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

prt                         # interactive TUI
prt --lang ru               # language: en, ru, or zh
prt --export json           # one JSON snapshot
prt --export csv            # one CSV snapshot
prt --json                  # continuous NDJSON stream
prt watch 80 443            # compact port monitor
sudo prt                    # include processes hidden from this user

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 filter
  • Space: contextual actions
  • Enter: open the selected process
  • d: toggle the Connections details panel
  • [ / ]: switch Processes or SSH sub-tabs
  • p: pause or resume automatic refresh
  • L: 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.

License

MIT