Linux 查看CPU占比高的进程

while(true); 
do sleep 1;
 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head>>cpu.log; 
 echo "========================================================">>cpu.log; 
 done

猜你喜欢

转载自blog.csdn.net/gaobudong1234/article/details/82107535
今日推荐