Search code examples
linuxterminalfedoraps

command ps with option -l


I'm working on linux terminal,Fedora. And I want to find number of processes that have executed fork() call. I used first command ps -elf to list all processes with all possible details.

I want to know what does the first column from the left "F" refers to? maybe number of children for a parent?

p.s: manual doesn't mention the details of option -l.

enter image description here


Solution

  • actually, the man gives the answer:

    f F flags associated with the process, see the PROCESS FLAGS section. (alias flag, flags).

    then if you look at the PROCESS FLAGS section, you get:

    PROCESS FLAGS 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

    which will probably explain why you get only 0, 1, 4 or 5 as values in this column,