CommandLinux
Netherwatch
Monitor Real-Time Network Connections
Displays a live, auto-refreshing view of all network connections. Essential for monitoring server activity, debugging network issues, or detecting unexpected connections.
watch -n 1 'ss -tunapl'watch -n 1 'lsof -i -P -n | grep ESTABLISHED'Usage Notes
- •
-tTCP connections,-uUDP connections - •
-nnumeric addresses (no DNS lookup) - •
-aall sockets,-pshow process info - •
-llistening sockets only - •Run with
sudoto see all process names
Warnings
- Warning:High-traffic servers may generate overwhelming output
- Warning:Consider filtering by port or state for focused monitoring
Related Scroll Ideas
- • Monitor bandwidth per connection with iftop
- • Track connections by country with geoip
- • Alert on new connections to specific ports