Home Explore Blog CI



man-pages

9th chunk of `ps.man`
f9c01e01ec93cf2730e9e48bead16cb17a7d4ceefea21d130000000100000fa6
 ("zombie") process, terminated but  not  reaped  by
                    its parent

       For BSD formats and when the stat keyword is used, additional characters
       may be displayed:

               <    high-priority (not nice to other users)
               N    low-priority (nice to other users)
               L    has pages locked into memory (for real-time and custom IO)
               s    is a session leader
               l    is  multi‐threaded  (using CLONE_THREAD, like NPTL pthreads
                    do)
               +    is in the foreground process group

OBSOLETE SORT KEYS
       These keys are used by the BSD O option (when it is used  for  sorting).
       The  GNU  --sort  option  doesn’t  use  these  keys,  but the specifiers
       described below in the STANDARD FORMAT SPECIFIERS  section.   Note  that
       the  values  used in sorting are the internal values ps uses and not the
       "cooked" values used in some of the output format fields (e.g.   sorting
       on  tty will sort into device number, not according to the terminal name
       displayed).  Pipe ps output into the sort(1) command if you want to sort
       the cooked values.
       KEY   LONG         DESCRIPTION
       c     cmd          simple name of executable
       C     pcpu         cpu utilization
       f     flags        flags as in long format F field
       g     pgrp         process group ID
       G     tpgid        controlling tty process group ID
       j     cutime       cumulative user time
       J     cstime       cumulative system time
       k     utime        user time
       m     min_flt      number of minor page faults
       M     maj_flt      number of major page faults
       n     cmin_flt     cumulative minor page faults
       N     cmaj_flt     cumulative major page faults
       o     session      session ID
       p     pid          process ID
       P     ppid         parent process ID
       r     rss          resident set size
       R     resident     resident pages
       s     size         memory size in kilobytes
       S     share        amount of shared pages
       t     tty          the device number of the controlling tty
       T     start_time   time process was started
       U     uid          user ID number
       u     user         user name
       v     vsize        total VM size in KiB
       y     priority     kernel scheduling priority

AIX FORMAT DESCRIPTORS
       This ps supports AIX format descriptors, which work  somewhat  like  the
       formatting  codes  of  printf(1) and printf(3).  For example, the normal
       default output can be produced with this: ps -eo "%p  %y  %x  %c".   The
       NORMAL codes are described in the next section.
       CODE   NORMAL   HEADER
       %C     pcpu     %CPU
       %G     group    GROUP
       %P     ppid     PPID
       %U     user     USER
       %a     args     COMMAND
       %c     comm     COMMAND
       %g     rgroup   RGROUP
       %n     nice     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

Title: ps - Obsolete Sort Keys, AIX Format Descriptors, and Standard Format Specifiers
Summary
This section details obsolete sort keys used with the BSD O option for sorting, which are not used with the GNU --sort option. It also explains AIX format descriptors, which work like printf formatting codes, and provides a table of codes, normal output, and headers. Finally, it lists standard format specifiers that can be used with the -o option to control output format or to sort processes with the GNU-style --sort option, along with their descriptions and availability for sorting.