啥也不说,直接上脚本:
root@Storage:/mnt/mtd# cat cpu.sh #!/bin/shwhile truedo ps -H -eo user,pid,ppid,tid,time,%cpu,cmd --sort=%cpu sleep 1doneroot@Storage:/mnt/mtd#