/ Published in: Bash
Filters for tcp and tcp6 lines, so omits udp and unix sockets.
Information is gathered from /proc; this uses netstat mainly to format it.
Gives output like:<pre> 21 tcp LISTEN
12 tcp ESTABLISHED
7 tcp6 LISTEN
1 tcp TIME_WAIT</pre>
Information is gathered from /proc; this uses netstat mainly to format it.
Gives output like:<pre> 21 tcp LISTEN
12 tcp ESTABLISHED
7 tcp6 LISTEN
1 tcp TIME_WAIT</pre>