ps可以在Linux上只显示非内核进程吗?

ps --ppid 2 -p 2 --deselect

kthreadd(PID 2)具有PPID 0(在Linux 2.6上),但ps不允许过滤PPID 0;因此这种解决方法.

posted @ 2022-04-15 14:42  dolinux  阅读(141)  评论(0)    收藏  举报