137k views
3 votes
How to find the zombie process in linux

User Darf Zon
by
7.5k points

1 Answer

3 votes

Final answer:

To find a zombie process in Linux, you can use the ps command along with specific options to filter the processes. The 'Z' state indicates a zombie process.

Step-by-step explanation:

To find a zombie process in Linux, you can use the ps command along with specific options to filter the processes. A zombie process is a process that has completed execution but still has an entry in the process table because its parent has not yet read its exit status.

By using the ps aux command, you can list all processes and check for any processes in the zombie state. The 'Z' state in the process status column indicates a zombie process.

For example, you can run the command ps aux | grep 'Z' to find zombie processes. This command lists all processes and filters for those in the zombie state. The output will show the process ID, parent process ID, CPU usage, etc., allowing you to identify and manage zombie processes.

User Mkisantal
by
8.0k points