Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How the Linux system kill command kills the process

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

The content of this article mainly focuses on how the kill command of the Linux system kills the process. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

What do we do when we open a program and suddenly it locks up, stops running, or crashes unexpectedly? The most direct way is to kill the unresponsive program directly.

Method 1: Terminal terminal input: gnome-system-monitor, you can open system monitor

As shown in the figure:

Then find the appropriate process, right-click and select kill process.

Method 2: it can be realized by kill process id.

First of all, you need to know the process id. For example, if you want to kill the process firefox, you can find the process id of firefox through ps-ef | grep firefox:

Then the process can be shut down through kill 3781.

Add: 1. Kill-9 to force termination of exit, for example: kill-9 3781

two。 Special usage:

Kill-STOP [pid]

Send SIGSTOP to stop a process without destroying it.

Kill-CONT [pid]

Send SIGCONT (19, 18, 25) to restart a stopped process.

Kill-KILL [pid]

Sending a SIGKILL (9) forces the process to stop immediately and does not perform a cleanup operation.

Kill-9-1

Terminate all processes you have.

Method 3: killall kills the process through the name of the program

For example: killall firefox

Note: this command can use the-9 parameter to forcibly kill the process, killall-9 firefox

Method 4: pkill kills all processes directly through the name of the program

For example: pkill firefox

Method 5: you can kill graphics applications through xkill, such as firefox crash no response, you can use this command.

For example: using xkill, a white x appears, and then click the application you want to kill with the mouse, as shown in the figure

Thank you for your reading, I believe you have a certain understanding of the "Linux system kill command how to kill the process" this problem, quickly go to practice, if you want to know more related knowledge points, you can follow the website! The editor will continue to bring you better articles!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report