When I ps aux | grep 'S'
I see a few programs that I want to kill
. According to man ps
the state code for S
is interruptible sleep (waiting for an event to complete)
.
I've tried kill [Process ID (PID)]
and also sudo kill [Process ID (PID)]
. Despite my efforts they're all still in interruptible sleep
. NB: I don't want to kill all (killall
) the PIDs.
Q: Is there anyway of killing these PIDs? Or an alternative way of stopping them?
kill -9
(i.e.,kill -KILL
)? Might these processes be catching or ignoring SIGTERM? – Scott - Слава Україні Mar 10 '15 at 23:30kill -9 [PID]
? And what doeskill -9
do, because I don't want inadvertentlykill
other PIDs in the server. – 3kstc Mar 10 '15 at 23:39kill
withsudo
privileges, and you haven't read thekill
man page! Oh my! – Scott - Слава Україні Mar 10 '15 at 23:44man kill
but I've concluded thatkill -9 [PID No]
is going nuclear. So I just want to reconfirm. I've messed up by running the same program multiple times in the background, which is why I want to kill them now. – 3kstc Mar 10 '15 at 23:54kill -9 0
. (Don't aim a gun at something unless you want to kill it.) If you're trying to kill your own processes, there's no reason to usesudo
: it doesn't make the command more effective, but it does make it more dangerous. – Scott - Слава Україні Mar 11 '15 at 00:11kill -9
, and now I understand! Many thanks! – 3kstc Mar 11 '15 at 01:14