They offer different flash templates with latest features.

Forgot password
Written by:
Score: 135
votes: 156
Format: Article

 How to close a program that has frozen.

Although Linux is a really stable platform, there will be some times that a program will freeze. In those cases most people are stuck on what to do. This little guide is for them.

Generally you have two choices for closing a stuck program:

1. Close all programs related to that program (including multiple windows of the program)

2. Close a program with your mouse cursor.

I'll explain both a bit.


Use the KillAll feature to kill a program.

1. Press Alt+F2 and type in gnome-terminal to open a terminal session.

2. Inside of the terminal type in sudo killall <application-name>. For example, to kill firefox type in sudo killall firefox.


Use the xkill feature to kill a program you click on

1. Press Alt+F2 and type in gnome-terminal to open a terminal session.

2. Inside of the terminal type in sudo xkill; then click on any window to kill it. This command makes your cursor act like a terminator, deadly.


That's all there is to it. Hopefully you never experience a crash.

Tags: frozen, xkill, stuck
Created: 6 years ago.
Last edited: 6 years ago.
Read 21034 times.

9 months ago

Doesnt work on HP8440p notebook, have to power off & restart, seems to be msot prevalent watching youtube?  
11 months ago

thanks.very helpful!  
1 year ago

Thanks, good tuto!  
1 year ago

thanks for feedback guys. really glad to know my tut works even it's 4 yo.  
1 year ago

Clear description. Thanks :)  
1 year ago

Worked Great!! Thanks for the simple and accurate description of how to do this.

2 years ago

Nice tip. Thanks.  
2 years ago

Clear description. Thanks :)  
2 years ago

2 years ago

3 years ago

3 years ago

thanks a lot , It really helps  
3 years ago

u can add a shortcut for it on keyboard shourtcuts in system setting. on the buttom of the window there is a plus sign click on it
name: xkill
command: xkill
then add a shortcut, you can use ctrl+x as in ubuntu or anything you like
3 years ago

thank you.  
3 years ago

thank for your help!  
3 years ago

Please edit your post and clarify that most of the time, xkill does not require sudo, just Alt+F2, enter "xkill" and kill away...  
3 years ago

Very essential post, thank for your help!  
4 years ago

very helpful particularly when the main ui crashed.  
4 years ago

Thank you  
4 years ago

hey whole system freezes as soon as i try to start my webcam by the combination 'Fn+F10' which works perfctly fine in windows.Any idea about how to survive this instead of shuting down the system
4 years ago

You should also show us -newbies- how to find the processes.  
4 years ago

thanks. just killed a stubborn send to window with the sudo xkill command  
5 years ago

Good to know for the new user  
5 years ago

great tutorial!  
5 years ago

Thanks. It's a really helpful tutorial.
Unfortunately I face this problem. Even bigger than this problem. My entire Mint OS freezes. And when it freezes, nothing works. And it happens very often. Can you help me out with this?
One friend in forum suggested that it might be because of low RAM. But I have 1 GB RAM. I think it's enough to run the system smoothly.
5 years ago

There is a much comfortable way for the common user. Put the "force quit"-Button in your taskbar. Than click on it when a application hangs. An than click with your cursor on a window of the application. Ready.  
5 years ago

Quality, as trying out all sorts of new stuff (BETA VERSIONS) now I can just close the window without the reset.  
5 years ago

That a simple great tutorial, Love it ! Thx bro :D  
5 years ago

Its always nice to get more of a feel with the "F" keys. I can now say my mouse feels invincible, program terminated ;D.  
5 years ago

A handy trick, thanks a lot.  
5 years ago

Many thanks to author and to all who proposed the alternative options.  
5 years ago

hello from greece.
very good,but some times we have zombies!
5 years ago

Thanks A MILLION .  
5 years ago

thanks. I was wondering how to do this. I had my VLC player lock up for some reason once and just rebooted. This way is much simpler.  
5 years ago

wow ... good one :)
thx for sharing
5 years ago

Good to know. Thanks.  
5 years ago

Being on a netbook, this will come in handy.  
5 years ago

In my opinion the best way to kill a frozen app is with the applet (see alphazero user at the end of this comment list). But there is another way that I have not readen in any comment here: System Monitor.  
5 years ago

thankyou very muche very helpful.  
5 years ago

Thank you
comments on this tutorial are almost as interesting as the tutorial itself.
5 years ago

Funny that Linux uses terminology that the end-user understands ['killing' a Window]. Since I usually have the CLI open on at least one workspace anyway... KillAll!  
5 years ago

very simple too bad the other guys (windoze) aren't this easy to figure out !!!  
5 years ago

nice share... i like xkill method that u shared...  
5 years ago

Using the command '$ top' in a terminal will give us a list of all the processes running at the moment, to kill one, we just need to press 'k' in the keyboard and then, write the pid of the process (shown in the list we got) and press enter.
At least, I've done it this way with good results.
5 years ago

I used to use ps aux | grep and then kill process by process  
5 years ago

Love xkill. Ensure window is visible before calling it up.  
6 years ago

There is a third option suitable at cases, when the above pointed methods will not save you, simply because they are not applicable.

Sometimes, mostly at games, more specifically at Windows games played via Wine, the entire graphical screen freezes.
Ctrl-Alt-Del and Ctrl-Alt-Backspace are not options, as you want to kill only the faulty game/processes, and at the same time not to lose other running applications/processes.

The steps to kill the faulty process are:
1. Open another TTY console of your choice - Press one of Ctrl-Alt-F2 through Ctrl-Alt-F6 sequence;
2. Login at the console;
3. Navigate the processes by issuing the command: 'ps -ef | less' and find the frozen processes;
4. Escape from less and kill these processes with the command: kill pid1 pid2 ... pidN , substiting the correct values for the pids;
5. Switch and finally return to the original graphical screen by pressing Ctrl-Alt-F7.
6 years ago

when something very bad happened to you, " kill -9 " is your friend. It will kill almost anything, succeed where "killall" fail.  
6 years ago

I'm new to Linux Mint, in fact although I've used a few different distro's I'd still say I'm a linux newbie.

Never knew about the this, thanks for the tutorial!
6 years ago

There are also times when a full-screen game crashes your desktop's video and gives you a black display---and you can't kill it because you can't see anything.

That's when I've found Ctrl+Alt+Backspace useful. It ends your desktop session and returns you to the logon screen. Of course if you have any open documents, you'll lose any unsaved data. But it's better than hitting your power switch. ;?)
6 years ago

Additionally, I recommend adding that sometimes killall does not work. At that point you need to break out ' kill -9 ' which will absolutely kill whatever you want, no questions asked.  
6 years ago

Thanks, I'll go for the terminator next time, instead of a reboot.  
6 years ago

Nice. I didn't know about xkill :)  
6 years ago

1. Click Ctrl + Alt + Esc
2. Click on the window which you need to kill.

This would kill the program that has frozen
6 years ago

for additional of this tutorial :

we can use force quit applet that can be added in panel. Just click that applet, can click again which frozen application that want to be killed.

Other tutorials from stapiagutierrez