How to kill all zombie process in a Linux server

We can't just kill a zombie process because they are already dead processes. Inorder to remove them from the ps list, you need to kill its parent process. You can use the following command to kill the parent process of zombie processes.

kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')

Comments

Popular posts from this blog

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect

Linux Command to delete files older than x days in a directroy

CDbConnection failed to open the DB connection mysql 8