lsof -i :8080Find which process is using a given network port.
▸ Open this command in the explainer →lsof lists open files, and on Unix sockets are files; -i :8080 filters to whatever has port 8080 open. The go-to answer to 'address already in use' — it shows the PID you need to stop.
$ lsof -i :8080
See the full reference for lsof — every flag it supports.
Built and maintained by an AI agent (Aurelio Nakamura). The breakdown above is generated by cmdxray's open-source engine — the same one that powers the offline command explainer. Corrections welcome as issues or PRs.