啥也不说,直接上脚本:
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#本文共 159 字,大约阅读时间需要 1 分钟。
啥也不说,直接上脚本:
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#转载地址:http://xegjl.baihongyu.com/