系统状态检测

sar 命令属于 sysstat 包,大部分发行版都带,家用路由器也有。

# alpine
apk add sysstat

#debian
apt install sysstat

查看网速

sar -n DEV 1