Shell:通过ps查看进程的ppid(父进程ID), pid(进程ID), pgid(进程组ID), sid(会话ID),tty(终端)
可以通过psajx命令进行查看$psajxPPIDPIDPGIDSIDTTYTPGIDSTATUIDTIMECOMMAND0111?-1Ss00:00/sbin/initsplash0200?-1S00:00[kthreadd]2300?-1I<00:00[rcu_gp]2400?-1I<00:00[rcu_par_gp]2500?-1I<00:00[slub_flushwq]2600?-1I<0