A process that has terminated but still appears in the process table with a status code 'Z' can be interacted with using the kill command to release its consumed resources.
A process with a 'Z' status code is known as a zombie process. Zombie processes cannot be interacted with or killed using the kill command because they are already terminated and are only awaiting the parent process to read their exit status. The resources are held by the OS to allow the parent process to check the child's exit status. Only the parent process finishing or reading the exit status can remove the zombie from the process table.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a zombie process?
Open an interactive chat with Bash
How can a parent process remove a zombie process?
Open an interactive chat with Bash
Why can't the kill command remove zombie processes?