commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
netstat has two lines of headers:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Added a filter in the awk command to remove them
There is 1 alternative - vote for the best!
Same as the rest, but handle IPv6 short IPs. Also, sort in the order that you're probably looking for.
count connections, group by IP and port
If you can do better, submit your command here.
You must be signed in to comment.