Find the process using the most cpu and return the percent of cpu usage

$ ps -eo pcpu,pid,user,args | sort -k 1 -r | head -2 | tail -1 | grep www-data | awk '{print $1}'

References

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.