I need explain about the four field (4 or 0 ) of ps -ef comma开发者_如何学Pythonnd , what the meaning of this number THX yael
root 27116 27112 4 15:25 pts/0 00:00:00 grep -qsRw -m1 monitohhhhhhhr /var
root 29017 27113 0 15:25 pts/0 00:00:00 grep qsRw -m1
They should be the process flags. From this page (the ps man page):
The sum of these values is displayed in the "F" column, which is provided by the flags output specifier. 1 forked but didn't exec 4 used super-user privileges
zero, I guess, would be a normal process.
This information can be found in the manual of ps(1):
C processor utilization. Currently, this is the integer value of the percent usage over the lifetime of the process. (see %cpu)
精彩评论