Find which process owns a TCP port.
Section: Sockets and Connections
Show process using port
bash
bash
sudo lsof -iTCP:8080 -sTCP:LISTEN -n -PExplanation
Find which process owns a TCP port.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Sockets and Connections