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]

 

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐