Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
portop
command
Command portop is a terminal UI showing which processes are really using your TCP/UDP ports β like htop, but for ports.
|
Command portop is a terminal UI showing which processes are really using your TCP/UDP ports β like htop, but for ports. |
|
internal
|
|
|
app
Package app wires together the scanner, docker, systemd, dns and cpu packages into the enriched rows the UI (and --json mode) display, and holds the CLI-level configuration for a run.
|
Package app wires together the scanner, docker, systemd, dns and cpu packages into the enriched rows the UI (and --json mode) display, and holds the CLI-level configuration for a run. |
|
baseline
Package baseline implements portop's drift-detection feature: save a snapshot of which ports are currently listening, then later diff the live system against it to see what changed.
|
Package baseline implements portop's drift-detection feature: save a snapshot of which ports are currently listening, then later diff the live system against it to see what changed. |
|
cli
Package cli parses portop's command-line interface and dispatches to either the interactive TUI or the non-interactive --json snapshot mode.
|
Package cli parses portop's command-line interface and dispatches to either the interactive TUI or the non-interactive --json snapshot mode. |
|
config
Package config loads portop's optional config.yml: default flag values, the color theme, and keybinding overrides.
|
Package config loads portop's optional config.yml: default flag values, the color theme, and keybinding overrides. |
|
dnscache
Package dnscache provides a caching, non-blocking reverse DNS resolver suitable for calling from a UI render loop: a lookup that has not completed yet returns immediately with ok=false and completes in the background, so the UI never stalls on a slow or dead resolver.
|
Package dnscache provides a caching, non-blocking reverse DNS resolver suitable for calling from a UI render loop: a lookup that has not completed yet returns immediately with ok=false and completes in the background, so the UI never stalls on a slow or dead resolver. |
|
docker
Package docker associates a process with the Docker container that owns it (via the process's cgroup) and looks up that container's name through the Docker Engine API over its unix socket.
|
Package docker associates a process with the Docker container that owns it (via the process's cgroup) and looks up that container's name through the Docker Engine API over its unix socket. |
|
netutil
Package netutil decodes the hex-encoded address/port fields used by Linux's /proc/net/{tcp,tcp6,udp,udp6} pseudo-files.
|
Package netutil decodes the hex-encoded address/port fields used by Linux's /proc/net/{tcp,tcp6,udp,udp6} pseudo-files. |
|
notify
Package notify sends best-effort desktop notifications (used by portop's "alert on new listening port" feature).
|
Package notify sends best-effort desktop notifications (used by portop's "alert on new listening port" feature). |
|
openurl
Package openurl opens a URL in the user's default browser, on whichever OS portop happens to be running on.
|
Package openurl opens a URL in the user's default browser, on whichever OS portop happens to be running on. |
|
procctl
Package procctl sends termination signals to processes by PID, for portop's "k" (kill) action.
|
Package procctl sends termination signals to processes by PID, for portop's "k" (kill) action. |
|
procinfo
Package procinfo reads detailed, on-demand information about a single process for the TUI's detail view (Enter on a row): command line, executable path, working directory, owning user, memory usage and start time.
|
Package procinfo reads detailed, on-demand information about a single process for the TUI's detail view (Enter on a row): command line, executable path, working directory, owning user, memory usage and start time. |
|
scanner
Package scanner enumerates TCP/UDP sockets on Linux by reading the /proc/net/{tcp,tcp6,udp,udp6} pseudo-files and resolves each socket to the owning process by walking /proc/<pid>/fd.
|
Package scanner enumerates TCP/UDP sockets on Linux by reading the /proc/net/{tcp,tcp6,udp,udp6} pseudo-files and resolves each socket to the owning process by walking /proc/<pid>/fd. |
|
services
Package services resolves well-known port numbers to service names (22 -> ssh, 443 -> https) by parsing the system's /etc/services file, so portop can hint at what a port is for even when the owning process can't be resolved (e.g.
|
Package services resolves well-known port numbers to service names (22 -> ssh, 443 -> https) by parsing the system's /etc/services file, so portop can hint at what a port is for even when the owning process can't be resolved (e.g. |
|
systemdinfo
Package systemdinfo associates a process with the systemd unit that owns it, by inspecting the process's cgroup membership.
|
Package systemdinfo associates a process with the systemd unit that owns it, by inspecting the process's cgroup membership. |
|
ui
Package ui implements portop's Bubble Tea terminal UI: a live, sortable, filterable table of TCP/UDP sockets enriched with process, systemd and Docker context.
|
Package ui implements portop's Bubble Tea terminal UI: a live, sortable, filterable table of TCP/UDP sockets enriched with process, systemd and Docker context. |
Click to show internal directories.
Click to hide internal directories.
Filtering to a port, checking who owns it, and the confirm-before-kill flow β all in real time.