Reference:UNIX/Linux: 10 Netstat Command Examples
awk'{print $1}'access.log |sort|uniq -c|sort -nr|head -10 参考资料:http://blog.maxiang.net/10-netstat-command-examples/139/
ExamplesTo display both the Ethernet statistics and the statistics for all protocols, type:Kopiér netstat -e -s To display the statistics for only the TCP and UDP protocols, type:Kopiér netstat -s -p tcp udp To display active TCP connections and the process IDs every 5 seconds, type:...
Змістстатті Syntax Parameters Remarks Examples Additional references Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4...
In order to fully understand the following concepts and fields, you need to have some general knowledge of TCP/IP. See the IBM® Redbooks® publication TCP/IP tutorial and Technical Overview, GG24-3376 for more information.Netstat report general concepts Netstat ALL/-A report Netstat ALL...
ExamplesTo display both the Ethernet statistics and the statistics for all protocols, type:复制 netstat -e -s To display the statistics for only the TCP and UDP protocols, type:复制 netstat -s -p tcp udp To display active TCP connections and the process IDs every 5 seconds, type:...
In order to fully understand the following concepts and fields, you need to have some general knowledge of TCP/IP. See the IBM® Redbooks® publication TCP/IP tutorial and Technical Overview, GG24-3376 for more information.Netstat report general concepts Netstat ALL/-A report Netstat ALL...
ExamplesTo display both the Ethernet statistics and the statistics for all protocols, type:Copy netstat -e -s To display the statistics for only the TCP and UDP protocols, type:Copy netstat -s -p tcp udp To display active TCP connections and the process IDs every 5 seconds, type:...
ExamplesTo display both the Ethernet statistics and the statistics for all protocols, type:Copy netstat -e -s To display the statistics for only the TCP and UDP protocols, type:Copy netstat -s -p tcp udp To display active TCP connections and the process IDs every 5 seconds, type:...
使用 grep 命令你可以查看 http 或 smtp 或其它任何你想查看的服务。 好了,netstat 的大部分功能都介绍过了,如果你想知道 netstat 更高级的功能,阅读它的手册吧(man netstat)。 欢迎在下面留下你的反馈和建议。 via:http://www.binarytides.com/linux-netstat-command-examples/...