ss is the modern default, usually installed:
| |
| |
lsof gives a clearer PID plus command path:
| |
netstat on older systems, from net-tools:
| |
Killing the holder — a plain kill first, -9 only if it refuses:
| |
To check a port is open, ignoring the owner:
| |
Usual cases: a taken port, or a Docker container colliding with a local process; in containers the answer comes from docker ps or the orchestrator, not ss on the host.