How to Kill a Process by Process Name from Ubuntu Command Line When a program stops responding in Windows, most users know how to stop it by pressing Ctrl + Alt + Delete on their keyboard, pressing the Task Manager option and closing it from there. That approach doesn’t quite transfer to Linux distributions like Ubuntu, but that doesn’t mean that you’re short of options when a program crashes.
On the contrary—there are quite a few ways to close a program on Ubuntu using CMD. If you’re comfortable using the terminal, you can use commands like killall or xkill to force troublesome programs to close, or you can use the System Monitor app instead.
There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi
These techniques can be useful in shell scripts, where you wouldn’t know the process ID and would need to restart or kill a process.
Using The System Monitor To Force Close a Running Ubuntu Process
While it’s easy enough to close an open process in Ubuntu using the terminal, beginners might not feel comfortable doing this. But an Ubuntu user doesn’t need to go near the terminal to force close a crashed program—you can use the System Monitor app instead.
The System Monitor works a lot like the Task Manager does for Windows PCs. It lists all the running processes on your PC, as well as giving you real-time information on your CPU, RAM, and disk usage. It also allows you to force close any crashed software that won’t respond or close directly.
To force close a program in Ubuntu using the System Monitor, press the Show Applications button at the bottom of the Ubuntu dock. In your Applications list, click on the System Monitor icon to launch it.
Am a Kenyan Based Politician, Senior blogger, Digital Communications expert, YouTuber, Pan Africanist, columnist, Human Rights Activist, informer & businessman. Contact me on +254791890826 or Email Me on email@example.com