Use the killall5 command of linux to signal all processes
Editor to share with you the use of linux killall5 command to send signals to all processes, I believe that most people do not know much about it, so share this article for you to learn, I hope you will learn a lot after reading this article, let's go to learn the method!
Killall5 is the SystemV killall command. It sends a signal to all processes except the kernel thread and the process in its own session, so it doesn't kill the shell that runs the script.
Syntax format: killall5 [parameters]
Common parameters:
Reference example
Kill all processes except 1122:
[root@linuxcool ~] # killall5-o 1122 and above are all the contents that use linux's killall5 command to send signals to all processes. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!