How do is add process id information to pstree output?



  • Man page for pstree.

           -p     Show  PIDs.   PIDs  are  shown  as decimal numbers in parentheses after each process
                  name.  -p implicitly disables compaction.
    

    Partial output displayed here.

    $ pstree -p
    systemd(1)-+-NetworkManager(3501)-+-dhclient(3525)
               |                      |-{NetworkManager}(3502)
               |                      `-{NetworkManager}(3504)
               |-agetty(4067)
               |-agetty(4070)
               |-auditd(2313)---{auditd}(2319)
               |-chronyd(2775)
               |-crond(4069)
    ...
    ...
    ...
    

Log in to reply
 

© Lightnetics 2019