Linux Process Monitoring/Show established TCP connections

Inspect established connections and owning processes.

Section: Ports and Socket Monitoring

Show established TCP connections

bash
bash
ss -tnp state established
Explanation

Inspect established connections and owning processes.

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 Ports and Socket Monitoring
Show all TCP/UDP sockets with process info
List listening and connected sockets with owning processes.
OpenIn sheetbashsame section
Show process using port
Find which process uses a local port.
OpenIn sheetbashsame section
Show process IDs using port
Show owners of a TCP or UDP port.
OpenIn sheetbashsame section
Launch top
Open the classic realtime process viewer.
pidstat all processes
Sample process activity every second for five intervals.
Show memory map for PID
Display a process memory map with sizes and permissions.