clear while true do echo "System configuration: lcpu=5" echo "tty: tin tout avg-cpu: % user % sys % idle % iowait" iostat -t 1 2 | tail -1
echo
echo " UID PID PPID CPU S TTY TIME VSIZE CMD" echo "——– ——- ——– —- – ——– ———- —– ——"
ps -efo user,pid,ppid,pcpu,stime,tty,time,vsz,comm | sort -k 4n,4r | head -10
echo
echo "Disks: % tm_act Kbps tps Kb_read Kb_wrtn" iostat -d | sort -k 3n,3r | head -3
echo "Sar: " sar 1 5
clear done
Comments