[LINUX] Kill the process with sudo kill -9

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.

bonus

"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

Kill the process with sudo kill -9
[linux] kill command to kill the process
Tucker decomposition of the hay process with HOOI
Gaussian process with pymc3
How to kill a process instantly with Python's Process Pool Executor
Insert the debugger with nose
Guess the password with klee
Process the files in the folder in order with a shell script
gethostbyaddr () communicates with the outside
scraping the Nikkei 225 with playwright-python
ShinobiLayer: Process monitoring with Advanced Monitoring
Check the code with flake8
Calibrate the model with PyCaret
Call the API with python3.
Monitor Tomcat process with Zabbix-agent
Process feedly xml with Python.
Process the contents of the file in order with a shell script
I tried to process the image in "sketch style" with OpenCV
Note that the process remains even after logging out with SSH
I tried to process the image in "pencil style" with OpenCV
Process the dotted line as a solid line with camelot (Hough transform)
Node.js: How to kill offspring of a process started with child_process.fork ()
Decrypt the QR code with CNN
Extract the xz file with python
Extract the maximum value with pandas.
Color the integration interval with matplotlib.pyplot
Use the preview feature with aws-cli
Authentication process with gRPC and Firebase Authentication
Follow the file hierarchy with fts
Specifying the date with the Twitter API
The universe is dangerous with PyEphem
Pave the road with combinatorial optimization
Run the app with Flask + Heroku
Get the weather with Python requests
Get the weather with Python requests 2
[Scrapy] Correct / process the extracted URL
Find the Levenshtein Distance with python
Explore the maze with reinforcement learning
Finding the simplest mistakes with OpenCV
Hit the Etherpad-lite API with Python
Install the Python plugin with Netbeans 8.0.2
Output the call graph with PyCallGraph
Install the data files with setup.py
Download the file deployed with appcfg.py
Process the result of% time,% timeit
Debug the script with Sakura Editor
I liked the tweet with python. ..
Using cgo with the go command
Master the type with Python [Python 3.9 compatible]
Hit the top command with htop
Try blurring the image with opencv2
Process Pubmed .xml data with python
Validate the learning model with Pylearn2
Open the file with the default app
Prepare the development environment with anyenv
[Introduction to Udemy Python3 + Application] 47. Process the dictionary with a for statement
I made a GAN with Keras, so I made a video of the learning process.