📅  最后修改于: 2022-03-11 14:50:15.636000             🧑  作者: Mango
while true; do (echo "%CPU %MEM ARGS $(date)" && ps -e -o pcpu,pmem,args --sort=pcpu | cut -d" " -f1-5 | tail) >> ps.log; sleep 5; done