Kill zombi processes on linux

Challenge

Sometimes I have processes called zombi processes reported by my login screen. I could not seem te get rid of them and now I can :-)

Solution

1
2
3
ps aux|grep -v grep|grep -w Z 
cat /proc/{problem pid}/status | grep -i ppid #results in a pid to do something with
kill {result of former command} # kills the problem

Extra information

Any of the commands above can of course be done or not according to your wishes. The first command searches for the zombi processes and the second command finds its parent process. when you know the parent process you can of course try to find it by entering:

1
ps -ef|grep -v grep|grep {parentpid}

sometimes you will get a result you can work with without killing it but if that did not work you can try killing it by using the last command (maybe combined with sudo).