文档:https://en.wikipedia.org/wiki/Netstat
https://man7.org/linux/man-pages/man8/netstat.8.html
1.简介
netstat(网络统计)是一个命令行实用程序,它显示网络统计信息。
适用于Unix、Plan 9、Inferno和 Linux 操作系统,包括macOS、Linux、Solaris和BSD。
也可用于 Windows XP、Windows Vista、Windows 7、Windows 8和Windows 10。
在 Linux 上,该程序大部分已过时,但仍包含在许多发行版中。
在 Linux 上,netstat(net-tools的一部分)被ss(iproute2的一部分)取代。
2.统计数据
$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 ip-172-31-10-225.:https zg-0829h-132.stre:52236