CompTIA Linux+ XK0-006 (V8) Practice Question

During a post-incident review you run:

$ ps -eo pid,ppid,stat,comm | grep '\<defunct\>'

and notice dozens of entries such as:

 8123  8010 Z   httpd
 8124  8010 Z   httpd

All of them show the state letter Z and the command is marked "". The parent process (PID 8010) is still active. Which action is the most appropriate way to remove these processes from the process table without rebooting the server?

  • Send kill -9 to each zombie PID to force the kernel to remove them.

  • Flush outstanding disk I/O because the Z state means the processes are stuck in uninterruptible sleep.

  • Use renice -n -20 on the zombie PIDs so they complete and exit more quickly.

  • Restart or otherwise signal the parent process so it calls wait() (or exits), allowing the zombies to be reaped.

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot