0
点赞
收藏
分享

微信扫一扫

Linux入门之使用 netstat 命令查看网络信息

看山远兮 2022-09-28 阅读 78

文档: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 
举报

相关推荐

0 条评论