Skip to content

Instantly share code, notes, and snippets.

@justyns
Created January 20, 2013 10:10
Show Gist options
  • Save justyns/4577654 to your computer and use it in GitHub Desktop.
Save justyns/4577654 to your computer and use it in GitHub Desktop.
View number of connections in each state using netstat [root@server~]# netstat -tan | awk '{print $6}' | sort | uniq -c 1 established) 5 ESTABLISHED 3 FIN_WAIT2 1 Foreign 12 LISTEN 63742 TIME_WAIT
netstat -tan | awk '{print $6}' | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment