LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Explanation of "ps -eo pcpu,pid,user,args" (https://www.linuxquestions.org/questions/linux-newbie-8/explanation-of-ps-eo-pcpu-pid-user-args-4175667724/)

L1P0 01-14-2020 07:58 PM

Explanation of "ps -eo pcpu,pid,user,args"
 
Hey guys. I want to know a detailed explanation for the output display of "ps -eo pcpu,pid,user,args". Is the %CPU being displayed considered the average CPU? How does this %CPU calculated?

sample output of "ps -eo pcpu,pid,user,args"

%CPU PID USER COMMAND
0.2 23898 root /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth vt7

berndbausch 01-14-2020 08:39 PM

This stackexchange reply documents the calculation: https://unix.stackexchange.com/quest...ame-cpu-result.


All times are GMT -5. The time now is 07:07 PM.