all network connections filtering out anything in column 6 that matches '/tcp/' and sorts the unique entries by count


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.