啥也不说,直接上脚本:
[email protected]:/mnt/mtd# cat cpu.sh
#!/bin/sh
while true
do
ps -H -eo user,pid,ppid,tid,time,%cpu,cmd --sort=%cpu
sleep 1
done
[email protected]:/mnt/mtd#
时间: 2025-01-05 14:49:23
啥也不说,直接上脚本:
[email protected]:/mnt/mtd# cat cpu.sh
#!/bin/sh
while true
do
ps -H -eo user,pid,ppid,tid,time,%cpu,cmd --sort=%cpu
sleep 1
done
[email protected]:/mnt/mtd#