在 Debian 系统里,cpustat 通常来自 sysstat 包(也有单独叫 cpustat 的工具,但更常见的是 mpstat / sar 等来自 sysstat)。
Debian 中并没有直接叫 cpustat 的命令(除非你装了特定工具),你可能指的是:
mpstat:查看 CPU 使用率sar:系统活动报告安装方法:
sudo apt update
sudo apt install sysstat
使用:
mpstat 1
sar -u 1
cpustat 的命令有一个独立的工具叫 cpustat(由 packit 项目或某些仓库提供):
sudo apt install cpustat
然后运行:
cpustat
如果 apt 找不到:
apt search cpustat
which cpustat
which mpstat
dpkg -l | grep cpustat
sysstat,用 mpstatcpustat 命令 → apt install cpustat如果你是在某篇文档或脚本里看到 cpustat,可以把出处发我,我帮你确认到底是哪一个。