Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何生成一个进程列表,其中不包括当前进程、它的 shell 和进程组中的任何相关进程,以及SSHD为处理会话而生成的进程?
SSHD
ps(1)实际上有一个选项可以做到这一点吗?
ps(1)
是否有一些谓词可以应用于每个流程以将其从我生成的任何列表中过滤出来?
将下面引用的答案与-N( --deselect) 选项结合起来ps可能会让您到达那里:
-N
--deselect
ps