Linux: Network Connection Statistics
Note
Troubleshooting network applications is often aided by reviewing the applications on the system with open ports, waiting for network traffic to connect. To do this in a Linux terminal, run this command:
ss -tulpnss -tulpnss -tulpnss -tulpnss options mean:
| Switch | Meaning |
|---|---|
| t | show TCP connections |
| u | show UDP connections |
| l | show listening sockets only |
| p | include PID for listening processes |
| n | faster output by skipping resolving IP addresses to hostnames |
Install the ss command with:
dnf -y install iproute2apt -y install iproute2apk add iproute2pacman -Syu iproute2