linux中,如何查看某个进程号下面有哪些子进程

2025-06-28 06:50:41
推荐回答(2个)
回答1:

ps -ef|grep 你的主进程名称,查到主程序ID
top -H -p 主程序ID // 就看到所有的子进程/线程了。

回答2:

pstree -p