Tools to list active connections, listening ports, and the owning processes:
netstat— universal but deprecated on modern Linux (still standard on Windows, with-anobshowing PIDs/binaries).ss(modern Linux) — faster successor tonetstat, queries kernel netlink directly.ss -tulpanis the canonical "show me everything listening with PIDs".
During IR these reveal suspicious listeners (backdoors, reverse-shell sockets) and outbound connections to known-bad IPs. Pair with lsof -i for richer per-socket detail.