Some basic usage examples.
Use watch to check the number of established connections at an interval of 1 second:
watch -n 1 "netstat -an | grep ESTABLISHED | wc -l"
Use watch to check the number of established connections at an interval of 1 second:
watch -n 1 "netstat -an | grep ESTABLISHED | wc -l"