Home Explore Blog CI



man-pages

10th chunk of `ps.man`
578989eb63a458141a3f7056a7ba02a5a6579013c303e30e0000000100000fa2
     NI
       %p     pid      PID
       %r     pgid     PGID
       %t     etime    ELAPSED
       %u     ruser    RUSER
       %x     time     TIME
       %y     tty      TTY
       %z     vsz      VSZ

STANDARD FORMAT SPECIFIERS
       Here  are  the different keywords that may be used to control the output
       format (e.g. with option -o) or to sort the selected processes with  the
       GNU-style --sort option.

       For example: ps -eo pid,user,args --sort user

       This version of ps tries to recognize most of the keywords used in other
       implementations of ps.

       The   following  user-defined  format  specifiers  may  contain  spaces:
       args, cmd, comm, command, fname, ucmd, ucomm, lstart, bsdstart, start.

       Some keywords may not be available for sorting.

       CODE        HEADER    DESCRIPTION

       %cpu        %CPU      cpu utilization of the process in  "##.#"  format.
                             Currently,  it is the CPU time used divided by the
                             time    the    process    has     been     running
                             (cputime/realtime    ratio),    expressed   as   a
                             percentage.  It will not add up to 100% unless you
                             are lucky.  (alias pcpu).

       %mem        %MEM      ratio of the process’s resident set size   to  the
                             physical  memory  on  the  machine, expressed as a
                             percentage.  (alias pmem).

       ag_id       AGID      The autogroup identifier associated with a process
                             which  operates  in  conjunction  with   the   CFS
                             scheduler    to    improve   interactive   desktop
                             performance.

       ag_nice     AGNI      The autogroup nice value which affects  scheduling
                             of all processes in that group.

       args        COMMAND   command  with  all  its  arguments  as  a  string.
                             Modifications to the arguments may be shown.   The
                             output  in  this  column  may  contain  spaces.  A
                             process marked <defunct> is partly  dead,  waiting
                             to  be  fully  destroyed by its parent.  Sometimes
                             the process args will be  unavailable;  when  this
                             happens, ps will instead print the executable name
                             in  brackets.  (alias cmd, command).  See also the
                             comm format keyword, the  -f  option,  and  the  c
                             option.
                             When  specified  last,  this column will extend to
                             the edge of the display.  If ps can not  determine
                             display   width,  as  when  output  is  redirected
                             (piped) into a file or another command, the output
                             width is  undefined  (it  may  be  80,  unlimited,
                             determined  by the TERM variable, and so on).  The
                             COLUMNS environment variable or --cols option  may
                             be  used  to  exactly  determine the width in this
                             case.  The w or -w option may be also be  used  to
                             adjust width.

       blocked     BLOCKED   mask   of  the  blocked  signals,  see  signal(7).
                             According to the width  of  the  field,  a  32  or
                             64-bit  mask  in  hexadecimal format is displayed.
                             (alias sig_block, sigmask).

       bsdstart    START     time the command  started.   If  the  process  was
                             started  less than 24 hours ago, the output format
                             is " HH:MM", else it is " Mmm:SS"  (where  Mmm

Title: ps - Standard Format Specifiers (Continued)
Summary
Continuing the description of standard format specifiers for the ps command, this section details various keywords that control output format and sorting, including %cpu, %mem, ag_id, ag_nice, args, blocked, and bsdstart. Each keyword's header and a detailed description are provided, explaining what information they display about the process and how it's formatted.