Track Forking Process Hierarchies
Splunk 👶 Easy Linux
Beginner Mode

Start your terminal to use beginner mode.

Scenario

System resources are being consumed by an unusually large process tree. You need to identify the parent process with the most children and document its hierarchy.

Task

Identify the process tree with the highest number of child processes and save its hierarchy-including PIDs and full command names (arguments)-to: /home/devops/process_tree_report.txt.

Linux provides the pstree command to display full hierarchical process trees, including PIDs and command arguments.

Example

The file /home/devops/process_tree_report.txt should look similar to this:

spawn_many_workers.sh,159 /home/devops/spawn_many_workers.sh
 ├─sleep,209 infinity
 ├─spawn_many_workers.sh,190 /home/devops/spawn_many_workers.sh
 │  └─sleep,220 60
 ├─spawn_many_workers.sh,191 /home/devops/spawn_many_workers.sh
 ...

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →