title: How to kill defunct process on Linux by shell script
body: <p>In my server machines, some process goes to the defunct state every day. It affects my CPU usage. I need to write a shell script to kill the defunct process id and parent id.</p>
  <p>For example, when I run the command:</p>
  <pre><code>ps -ef|grep defunct.
  </code></pre>
  <p>it found many values. In that I need to kill only &quot;[chrome] defunct&quot; process.</p>
  <p>sample entry:-</p>
  <pre><code>bitnami  12217 12111  0 Feb09 pts/3    00:00:00 [chrome] &lt;defunct&gt;
  </code></pre>
  <p>I need to kill this type of chrome entries. Can anyone suggest some samples to kill the entries?</p>