Kill those persistent and annoying zombie processes.
ps -e -o ppid,stat | grep Z | cut -d" " -f2 | xargs kill -9
Tested on Fedora for accuracy.
This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Showing posts with label cut. Show all posts
Showing posts with label cut. Show all posts
Thursday, July 8, 2010
Thursday, June 17, 2010
Find the PID number with nothing else
Use this combination to find a PID number without anything else in the output:
ps -ef | grep -v grep | grep ssh | cut -d" " -f3
3012
Enjoy that kungfu knife-kick combo.
ps -ef | grep -v grep | grep ssh | cut -d" " -f3
3012
Enjoy that kungfu knife-kick combo.
Subscribe to:
Posts (Atom)