how to get all parent processes and all subprocesses by `pstree`

后端 未结 2 493
耶瑟儿~
耶瑟儿~ 2021-02-05 13:36

command pstree PID can show all subprocess information of the process specified by PID. However, I also want to know all parent process information of

2条回答
  •  灰色年华
    2021-02-05 14:12

    I found laps options mentioned by @haridsv (pstree -laps ) being a solution. It was a bit verbose for me though, so I'd stick to a shorter aps output.

提交回复
热议问题