Linux中查看进程树

pstree -p

查看当前的shell的进程和执行shell脚本的子进程的方法:echo $$

 

原文地址:https://www.cnblogs.com/kaishirenshi/p/8508144.html