In the Windows system, if the application does not respond, we will start the task manager to terminate the application, while in the Linux system, use the kill command, the kill command is mainly used to force the process to close, the following small series will introduce you to Linux. The usage of the kill command.
Kill Commands and Signals
When you execute a <kill” command, you actually send a signal to the system to terminate the abnormal application. There are a total of 60 signals you can use, but basically you only need to know SIGTERM(15) and SIGKILL(9).
You can see a list of all signals with this command:
kill -l
? SIGTERM - This signal requests a process to stop running. This signal can be ignored. A process can be shut down gracefully for a period of time. A normal shutdown of a program typically takes a while to save progress and free up resources. In other words, it is not a forced stop.
? SIGKILL - This signal forces the process to stop running immediately. The program cannot ignore this signal and the unsaved progress will be lost.
The syntax for using “kill” is:
kill [signal or option] PID(s)
The default signal (when not specified) is SIGTERM. When it doesn't work, you can force a process to be killed by using the following command:
kill SIGKILL PID
or
kill -9 PID
Here “-9” represents the SIGKILL signal.
If you don't know the PID of your application, just run this command:
ps ux
The Linux system storm ui has the kill topology function. If it is not blocked, it will cause the st
If you want to know the current status of the Linux server, then you need to know the Linux server m
As we mentioned earlier, using Linux can become a good router. Today, this article
A rootkit is a type of malware that is often used in conjunction with other malicio
How does Ubuntu set up a shortcut to start a program?
Linux how to install and configure MariaDB database
Linux system file permissions and access mode introduction
Linux system hard disk failure repair method
What are the relationships between processes in the Linux system?
Usage summary of chkconfig command under Linux
What is the meaning and authority of the Linux system chmod command?
Learn about the role of Linux mail commands through examples
How to use the touch command under Linux?
Linux setitimer function operation skills
XP system through Twain scan prompts the imaging device can not be initialized solution
Experience the fun of win7 manual uninstall driver
How to set win10 to delete files without popping up a prompt box?
How to set the timing shutdown function for iQiyi audio and video?
Win8 system accidentally deleted Metro icon how to do
Windows system group policy editor open method and file location
How to make my computer faster, teach you 15 strokes