Linux networking · Ports and connections
Summarize socket counts
Show totals by socket state.
ss -s
Official Linux networking documentation
More ports and connections commands
- List listening ports
- Find what is using a port
- Show established connections
- List processes using a port
- Scan a host's open ports
All ports and connections commands · Linux networking cheatsheet