I always use killall -9 process
command to kill process in Linux. Is it possible to kill a PID process in Linux? I try as follows
pidof nginx
29782
Now I try to kill nginx by a PID 29782
killall -9 29782
It spit out error
29782: no process found
I mean how do I do it with a PID?