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?kill -9 [PID]
? And what doeskill -9
do, because I don't want inadvertentlykill
other PIDs in the server.kill
withsudo
privileges, and you haven't read thekill
man page! Oh my!man 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.kill -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.