'ps' without kernel threads 'ps' without kernel threads shell shell

'ps' without kernel threads


It's the u in ps aux which defines the output columns. You can use:

ps u --ppid 2 -p 2 --deselect


ps -ef | awk '$3!= "2" {print $0}'