Skip to content

Instantly share code, notes, and snippets.

@yaph
Last active December 21, 2015 08:59
Show Gist options
  • Save yaph/6281767 to your computer and use it in GitHub Desktop.
Save yaph/6281767 to your computer and use it in GitHub Desktop.
monitor server connections
# count port 80 connections
netstat -alpen | grep -c :80
# watch connections, refresh every 5 seconds
sudo watch -n5 -d 'netstat -alpen | grep -c :'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment