在 Debian 里没有叫 cpustat 的默认命令,不过你可能有下面几种情况,我分别说清楚:
cpustat 这个工具cpustat 是 sysstat 之外的第三方工具(作者是 Colin Ian King)。
sudo apt update
sudo apt install cpustat
sudo cpustat
常见参数:
sudo cpustat 1 # 每 1 秒刷新
sudo cpustat -x # 显示更多细节
Debian 自带很多命令,不用装 cpustat 也行:
top
或更好用的:
htop
(需安装:sudo apt install htop)
lscpu
uptime
或
cat /proc/loadavg
mpstat -P ALL 1
(需安装:sudo apt install sysstat)
sensors
(需安装:sudo apt install lm-sensors)
cpustat → apt install cpustattop / htop / mpstatlscpu如果你能说一下你是想看“使用率 / 温度 / 每个进程占用”,我可以给你更精确的命令。