How to force stop apps on Linux guide

Here we provide simple tips on several methods to force stop apps.


1. Click the "X" button on the program
This is the easiest way, just press the "X" button on the application you want to close. The "X" button is usually located in the upper right corner. If you have tried pressing the "X" button and it is likely that a dialog box will appear writing "Please Wait" or Force Quit". You can choose "Force Quit" to make the application closing process faster.



2. Kill the program with System Monitor
If you are an Ubuntu user, please open an application called System Monitor. Find the name of the application you want to close and right-click --> kill.




3. Force Quit Linux Apps with the "kill" command
ps aux | grep [Application Name]

The result will show the process ID, and the ID can be used to stop the Linux process.
kill [process ID]

4. Using the commands "pkill" and "pgrep"
What if you can't find the process ID? There is another command "pkill" that can be your solution.

pkill [process name]
pkill opera <--- this will force the opera app to close.

To see the process ID, you can also use
pgrep [process name]
pgrep opera

5. Using the "killall" command
Haven't managed to use kill or pkill? Maybe this could be another option with "killall"

killall [process name]
killall opera

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.