在 Debian 里,没有叫 cpustat 这个“必装命令”,通常有两种情况:
cpustat 工具这是一个 性能统计工具,不是系统自带命令。
sudo apt update
sudo apt install cpustat
cpustat
或指定间隔和次数:
cpustat 1 5
需要 root 权限才能看到完整信息
Debian 常用方式如下:
top
实时查看 CPU、内存、进程
sudo apt install htop
htop
sudo apt install sysstat
mpstat 1
lscpu
top -bn1 | head
| 目的 | 命令 |
|---|---|
| 装 cpustat | apt install cpustat |
| 实时 CPU | top / htop |
| 类似 cpustat | mpstat |
| CPU 硬件信息 | lscpu |
如果你是**“想替代某个系统里的 cpustat”**,告诉我原来用的系统(CentOS / Ubuntu / Arch),我可以给你对应方案。