Linux Processes Cheat Sheet/Find process listening on port

Identify the process bound to a TCP port.

Section: Filtering and Sorting

Find process listening on port

bash
bash
lsof -iTCP:8080 -sTCP:LISTEN -Pn
Explanation

Identify the process bound to 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 Filtering and Sorting
Sort by CPU
Show the most CPU-intensive processes first.
OpenIn sheetbashsame section
Sort by memory
Show the most memory-intensive processes first.
OpenIn sheetbashsame section
Filter by TTY
Show processes attached to a terminal.
OpenIn sheetbashsame section
Filter by parent PID
List child processes of a specific parent.
OpenIn sheetbashsame section
Find process owned by user
Limit matches to one or more users.
OpenIn sheetbashsame section
Find process by session
Match processes in a session ID.
OpenIn sheetbashsame section