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
[Click to add or edit comments])
Please prepend comments below including a date