Naoki Hanzawa's spin-off "Naoki Hanzawa Year Memorial / Episode Zero Targeted Naoki Hanzawa's Password" to stop malicious programs sudo kill -9
was activated.
You can kill the process on Linux by actually typing the above command.
bash
$ sudo kill -9 <Process ID>
Let's actually use httpd as a subject.
First, check the process status with the ps
command.
bash
ec2-user:~/environment $ ps aux | grep httpd
root 4740 0.0 2.1 418668 21736 ? Ss 15:11 0:00 /usr/sbin/httpd
apache 4749 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4750 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4810 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4831 0.0 1.4 656452 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4852 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
Then use the kill
command to specify the process ID and kill it.
This time, I will stop the one with the process ID of 4749.
Then type the ps
command to check and you'll see that 4749 is gone.
bash
ec2-user:~/environment $ sudo kill -9 4749
ec2-user:~/environment $ ps aux | grep httpd
root 4740 0.0 2.1 418668 21736 ? Ss 15:11 0:00 /usr/sbin/httpd
apache 4750 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4810 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4831 0.0 1.4 656452 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4852 0.0 1.4 459780 14332 ? Sl 15:11 0:00 /usr/sbin/httpd
apache 4952 0.0 1.4 459780 14332 ? Sl 15:13 0:00 /usr/sbin/httpd
As you can see, sudo kill -9
can kill Linux processes.
"Ross Gene's Counterattack", which will be the original work of the second phase of "Hanzawa Naoki" starting in April 2020, is a story surrounding emerging IT companies, so it may be technically interesting to see developments. ..
Recommended Posts