ps aux | grep 'S' I see a few programs that I want to
kill. According to
man ps the state code for
interruptible sleep (waiting for an event to complete).
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 -KILL)? Might these processes be catching or ignoring SIGTERM?
kill -9 [PID]? And what does
kill -9do, because I don't want inadvertently
killother PIDs in the server.
sudoprivileges, and you haven't read the
killman page! Oh my!
man killbut I've concluded that
kill -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 use
sudo: it doesn't make the command more effective, but it does make it more dangerous.