In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly describes how to force the closure of Ubuntu unresponsive applications, the article is very detailed, has a certain reference value, interested friends must read!
Method 1: Using the X button for unresponsive UI-based applications
If one of your UI-based applications takes much longer to respond than expected, or it's in a suspended state, you'll see that its UI and buttons have turned gray. If you see the "x" button for closing an app active, you can try to kill the app through it.
Use the X button
In some distributions, you are prompted to send an error report when you try to turn off the No Response option. In other cases, you may be given an option to either wait or "force exit" from the app. Whatever the case, you have a good chance of getting rid of this unresponsive program.
Method 2: Using System Monitor, Ubuntu's Task Manager
Just like the Windows Task Manager you've probably used for years, Ubuntu also has a built-in process and resource monitoring tool called Gnome System Monitor. This Ubuntu Task Manager allows you to terminate, stop and resume processes on Ubuntu.
You can launch Gnome System Manager at any time through the UI by searching for System Monitor or even Task Manager in Ubuntu Dash, or by accessing it directly from the application list.
In the Processes tab of System Monitor, you will be able to see all processes that are currently running, including those that are not responding. To kill a process, simply right-click on it and select the kill option.
process list
However, we recommend that you first try using the Stop or End options to shut down the process, as they are relatively safe ways to stop the process.
Method 3: Using the xkill utility
There is a Linux utility called xkill that can kill an unresponsive program through the desktop. Most Linux distributions install it by default, but if your system lacks it, you can install it by using the following command in your terminal:
$ sudo apt-get install xorg-xkill
Please note that only authorized users can add/remove and configure software on Ubuntu.
Now run this utility using the xkill command as follows:
Start xkill
After running this command, you will see that the mouse pointer changes to an "x" or skull. You simply point the pointer to the unresponsive program and click it. This will terminate the suspend procedure in a few seconds.
Create keyboard shortcuts for xkill
While xkill is a very effective way to kill a pending program, opening the terminal and then running the command seems cumbersome. Let's talk about the fastest way to use this utility. How to create a custom keyboard shortcut that simply runs the command for you and you can see and use the 'x' shaped pointer directly to kill the app. Here's what you need to do:
1. Open Keyboard Shortcuts Settings
Open the Ubuntu Settings utility and access the Keyboard settings through the Devices tab. The easiest way to open keyboard settings is to search for "keyboard" via Dash Search.
The Setup Utility opens in the following view:
List of keyboard shortcuts
2. Create custom shortcuts
Scroll down the slider on the right and you'll see a "+" button at the bottom of the list. Click this button to add a new custom shortcut. The Add Custom Shortcuts dialog box appears. Enter the following information, after which the Add button becomes active:
Name: xkill
Command: xkill
Then click the Set Shortcut button to set keyboard shortcuts for the commands entered:
Enter a new shortcut
Press the key combination of the custom shortcut key. I enter Ctrl + Alt + K as a shortcut because my system hasn't used it for other purposes yet. Also, because the K in the combination is related to the word "Kill."
In any case, after entering the key combination, you will see it listed in the Shortcuts field of the Add Custom Shortcuts dialog box, as follows:
Add xkill shortcut
All you need to do now is click the Add button and the new keyboard shortcut will be registered as a new custom shortcut.
Now try using the new shortcut and you will be able to see the mouse pointer in the shape of an "x" or skill in the service.
Method 4: Use kill, pkill, and killall commands
Let's assume that our Ubuntu software manager Gnome software is stuck. We can use the command-line-based System Monitor top command to get information about the processes currently running, as follows:
$ top
List of processes displayed in the top command
Here you can get useful information about Gnome software applications, such as PID(Process ID) that can be used to terminate processes.
You can then use the kill command to terminate the process using its PID as follows:
$ kill [PID]
Example:
You can also use pkill to terminate a process by using the following syntax:
$ pkill [ProcessName]
Example: pkill gnome software
Then there is the killall command, which you can use to kill all instances of the application. Here is the grammar:
$ killall [ProcessName]
Example: killall gedit
That's all for the article "How to force unresponsive apps to close in Ubuntu." Thanks for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
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.