How do i use the ps command to view every system process in standard format?



  • Standard syntax, i.e. no BSD-Format.

    Short listing, The TIME column here is: the cumulated CPU time in
    [DD-]hh:mm:ss format (time=TIME)
    , not the time the process started.

    $ ps -e 
      PID TTY          TIME CMD
        1 ?        00:00:15 systemd
        2 ?        00:00:00 kthreadd
        4 ?        00:00:00 kworker/0:0H
        6 ?        00:00:00 mm_percpu_wq
    ...
    ...
    ...
    
    

    Long listing
    STIME is:

    The starting	time of	the process, given in hours, minutes, and seconds.  (A  process  begun more than twenty-four hours before the ps inquiry is executed is given in months and days.)
    

    The -f option shows the full format, additional columns and command arguments are shown. Less columns, more of the command args are shown on the terminal

    sz          SZ        size in physical pages of the core image of the process.  This includes text, data, and stack space.  Device mappings are currently excluded; this is subject to change.  See vsz and rss.
    
    rss         RSS       resident set size, the non-swapped physical memory that a task has used (in kiloBytes).  (alias rssize, rsz).
    
    psr         PSR       processor that process is currently assigned to.
    
    $ ps -ef
    UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
    ...
    ...
    trainer+  4820  4468  0 Jul22 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolut
    

    Extra full format. More columns, less of the command args are shown on the terminal

    $ ps -eF
    UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
    ...
    ...
    
    trainer+  4756  4468  0 201949 49756  1 Jul22 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-na...
    

Log in to reply
 

© Lightnetics 2024