Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I m not looking to kill a zombie process.

I m looking to avoid the display of zombie process in the ps command.

Are there an option to add to ps command inorder to avoid displaying the zombie process in the ps output. If not is it possible to do it with grep or sed?

share|improve this question

migrated from Jun 6 '13 at 16:22

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

"ps" arguments might differ from implementation to implementation, but for some common ones:

ps auxwww | grep -v " Z "


ps -u <username> -o pid,stime,s,args | grep -v " Z "
share|improve this answer

I like this one:

ps aux | awk '$8=="Z" { print $0 }'

Though you didn't mention awk...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .