R-Ts NetWorks

Server the Best

How do I find out zombie process?


ps aux | awk ‘{ print $8 ” ” $2 }’ | grep -w Z
Output:
Z 4104
Z 5320
Z 2945

How do I kill zombie process?

kill -9 4104
Or

If you need a single line command that does the work you can try

kill -HUP `ps -A -ostat,ppid | grep -e ‘^[Zz]’ | awk ‘{print $2}’`

 

Hope this should resolve your issue ! 🙂

Advertisements

January 28, 2013 - Posted by | Linux

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: