In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you the method of ending the process of linux. I believe most people do not know how to end the process. In order to let you learn, I have summed up the following contents. Without saying much, let's read on.
I. Positioning process
The positioning process can use either the top command or the ps command, as shown below:
1. Top command
It can view the overall operation of the system real-time and dynamically, and it is a practical tool that integrates the performance and operation information of the multi-party information monitoring system.
After entering top, you can see the following interface, which shows the process in real time.
2. Ps command
Used to report the process status of the current system. This command is often combined with grep to filter the output results, and the common structure is:
Ps-aux | grep *
II. End the process
We can end the process by its name and its ID (PID).
End the command:
Kill: terminates a process through the process ID
Killall: terminates a process by its name
The most commonly used signal to end a process is:
We can replace the name of the signal with the value of Single Value.
For example:
For example, if we want to kill the python process:
Kill SIGNAL PID
SIGNAL is the signal to be sent, and PID is the process number.
Kill-9 14992
The above command is to kill the python process. If there are multiple python programs running and you want to end them all, you can
Killall-9 python
After reading the above, have you mastered the method of linux to end the process? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.