Linux 采集CPU真实使用率

top -b -n1 | head | grep '^%Cpu' | awk '{print (100-$8-$6)}'

  

posted @ 2022-08-05 14:18  LB_运维技术  阅读(70)  评论(0)    收藏  举报