赞
踩
Linux系统中查看父进程ID,进程ID,进程组ID,会话ID的方法:ps ajx
[ycxie@localhost Workspace]$ ps ajx PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND 0 1 1 1 ? -1 Ss 0 0:02 /usr/lib/systemd/systemd --switched-root --system - 0 2 0 0 ? -1 S 0 0:00 [kthreadd] 2 3 0 0 ? -1 I< 0 0:00 [rcu_gp] 2 4 0 0 ? -1 I< 0 0:00 [rcu_par_gp] 2 6 0 0 ? -1 I< 0 0:00 [kworker/0:0H-events_highpri] 2 9 0 0 ? -1 I< 0 0:00 [mm_percpu_wq] 2 10 0 0 ? -1 S 0 0:00 [ksoftirqd/0] 2 11 0 0 ? -1 I 0 0:00 [rcu_sched] 2 12 0 0 ? -1 S 0 0:00 [migration/0] 2 13 0 0 ? -1 S 0 0:00 [cpuhp/0] 2 14 0 0 ? -1 S 0 0:00 [cpuhp/1] 2 15 0 0 ? -1 S 0 0:00 [migration/1] 2 16 0 0 ? -1 S 0 0:00 [ksoftirqd/1] 2 18 0 0 ? -1 I< 0 0:00 [kworker/1:0H-kblockd] 2 19 0 0 ? -1 S 0 0:00 [cpuhp/2] 2 20 0 0 ? -1 S 0 0:00 [migration/2]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。