From the abridged process list below, show the “trace of [process] ancestry” for
ID: 3752277 • Letter: F
Question
From the abridged process list below, show the “trace of [process] ancestry” for the command “ps axl” (bottom line of listing, and the command that produced the listing) back to process 0:
F
UID
PID
PPID
PRI
NI
VSZ
RSS
WCHAN
STAT
TTY
TIME COMMAND
4
0
1
0
20
0
119764
5904
-
Ss
?
0:02 /sbin/init
1
0
2
0
20
0
0
0
-
S
?
0:00 [kthreadd]
1
0
3
2
20
0
0
0
-
S
?
0:00 [ksoftirqd/
1
0
4
2
20
0
0
0
-
S
?
0:00 [kworker/0:
1
0
5
2
0
-20
0
0
-
S<
?
0:00 [kworker/0:
1
0
7
2
20
0
0
0
-
S
?
0:00 [rcu_sched]
1
0
8
2
20
0
0
0
-
S
?
0:00 [rcu_bh]
4
0
1051
1
20
0
449236
15980
-
Ssl
?
0:00 /usr/sbin/N
1
0
1080
2
20
0
0
0
-
S
?
0:00 [kworker/3:
4
0
1318
1051
20
0
16124
3632
-
S
?
0:00 /sbin/dhcli
4
65534
1334
1051
20
0
52868
4132
-
S
?
0:00 /usr/sbin/d
4
0
1402
1334
20
0
230304
8400
-
Sl
?
0:00 lightdm --s
4
118
1540
1
21
1
183544
3084
-
SNsl
?
0:00 /usr/lib/rt
4
1000
1649
1402
20
0
46480
4728
poll_s
Ss
?
0:00 /sbin/upsta
1
1000
1730
1649
20
0
32860
284
poll_s
S
?
0:00 upstart-ude
1
1000
1738
1649
20
0
43712
3976
ep_pol
Ss
?
0:00 dbus-daemon
0
1000
1750
1649
20
0
86348
8764
poll_s
Ss
?
0:00 /usr/lib/x8
1
1000
1777
1649
20
0
32796
300
poll_s
S
?
0:00 upstart-dbu
0
1000
1808
1649
20
0
406860
7260
futex_
S1
?
0:00 /usr/lib/gv
0
1000
2162
1649
20
0
188728
7740
poll_s
S1
?
0:00 /usr/lib/gv
0
1000
2207
2200
20
0
410204
7092
poll_s
S1
?
0:00 /usr/bin/ze
0
1000
2214
1649
20
0
317244
15112
poll_s
S1
?
0:00 /usr/lib/x8
0
1000
2216
1649
20
0
511544
18108
poll_s
S1
?
0:00 zeitgeist-d
0
1000
2275
1868
20
0
515724
22552
poll_s
S1
?
0:00 update-noti
0
1000
2292
1649
20
0
207860
5824
pipe_w
S1
?
0:00 /usr/lib/li
0
1000
2311
2292
20
0
1705824
220184
poll_s
S1
?
0:15 /usr/lib/li
0
1000
2339
1868
20
0
435444
8876
poll_s
S1
?
0:00 /usr/lib/x8
0
1000
2472
1649
20
0
654888
36684
-
R1
?
0:01 /usr/lib/gn
0
1000
2479
2472
20
0
21292
3760
wait
Ss
pts/2
0:00 bash
0
1000
2489
2479
20
0
28916
1516
-
R+
pts/2
0:00 ps axl
F
UID
PID
PPID
PRI
NI
VSZ
RSS
WCHAN
STAT
TTY
TIME COMMAND
4
0
1
0
20
0
119764
5904
-
Ss
?
0:02 /sbin/init
1
0
2
0
20
0
0
0
-
S
?
0:00 [kthreadd]
1
0
3
2
20
0
0
0
-
S
?
0:00 [ksoftirqd/
1
0
4
2
20
0
0
0
-
S
?
0:00 [kworker/0:
1
0
5
2
0
-20
0
0
-
S<
?
0:00 [kworker/0:
1
0
7
2
20
0
0
0
-
S
?
0:00 [rcu_sched]
1
0
8
2
20
0
0
0
-
S
?
0:00 [rcu_bh]
4
0
1051
1
20
0
449236
15980
-
Ssl
?
0:00 /usr/sbin/N
1
0
1080
2
20
0
0
0
-
S
?
0:00 [kworker/3:
4
0
1318
1051
20
0
16124
3632
-
S
?
0:00 /sbin/dhcli
4
65534
1334
1051
20
0
52868
4132
-
S
?
0:00 /usr/sbin/d
4
0
1402
1334
20
0
230304
8400
-
Sl
?
0:00 lightdm --s
4
118
1540
1
21
1
183544
3084
-
SNsl
?
0:00 /usr/lib/rt
4
1000
1649
1402
20
0
46480
4728
poll_s
Ss
?
0:00 /sbin/upsta
1
1000
1730
1649
20
0
32860
284
poll_s
S
?
0:00 upstart-ude
1
1000
1738
1649
20
0
43712
3976
ep_pol
Ss
?
0:00 dbus-daemon
0
1000
1750
1649
20
0
86348
8764
poll_s
Ss
?
0:00 /usr/lib/x8
1
1000
1777
1649
20
0
32796
300
poll_s
S
?
0:00 upstart-dbu
0
1000
1808
1649
20
0
406860
7260
futex_
S1
?
0:00 /usr/lib/gv
0
1000
2162
1649
20
0
188728
7740
poll_s
S1
?
0:00 /usr/lib/gv
0
1000
2207
2200
20
0
410204
7092
poll_s
S1
?
0:00 /usr/bin/ze
0
1000
2214
1649
20
0
317244
15112
poll_s
S1
?
0:00 /usr/lib/x8
0
1000
2216
1649
20
0
511544
18108
poll_s
S1
?
0:00 zeitgeist-d
0
1000
2275
1868
20
0
515724
22552
poll_s
S1
?
0:00 update-noti
0
1000
2292
1649
20
0
207860
5824
pipe_w
S1
?
0:00 /usr/lib/li
0
1000
2311
2292
20
0
1705824
220184
poll_s
S1
?
0:15 /usr/lib/li
0
1000
2339
1868
20
0
435444
8876
poll_s
S1
?
0:00 /usr/lib/x8
0
1000
2472
1649
20
0
654888
36684
-
R1
?
0:01 /usr/lib/gn
0
1000
2479
2472
20
0
21292
3760
wait
Ss
pts/2
0:00 bash
0
1000
2489
2479
20
0
28916
1516
-
R+
pts/2
0:00 ps axl
Explanation / Answer
Solution: -
if you run this command, then it will give you the ancestry of the ps axl process and using the ProcessID of the ps axl
you need to run this command to get the ancestry:
ps --forest -o pid=,tty=,stat=,time=,cmd= -g $(ps -o sid= -p 2489)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.