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