ps: Clean way to only get parent processes?

后端 未结 9 767
忘了有多久
忘了有多久 2020-12-15 00:28

I use ps ef and ps rf a lot.

Here is a sample output for ps rf:

  PID TTY      STAT   TIME COMMAND
 3476 pts/0         


        
9条回答
  •  伪装坚强ぢ
    2020-12-15 01:19

    /usr/bin/pgrep -o 
    

    where '-o' is the oldest (least recently started) of the matching processes

提交回复
热议问题