9 years ago
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.
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.
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.
xkill is great, if used with thought and caution, and only when all other options have been exhausted. Running Mint 18, and had an update to MintUpdate today, updater ran later, I updated a couple programs, and a dialog box hung afterwards that prevented MintUpdate from running any further checks. Could not get rid of it, could not find in any process list, or with ps -**, so tried xkill, and wham...Terminator is right!
Great I learned something really cool today.
Haha, I Struggled a lot for this...
Simple but Powerful commands.. Thanks :D..
Doesnt work on HP8440p notebook, have to power off & restart, seems to be msot prevalent watching youtube?
Thanks, good tuto!
thanks for feedback guys. really glad to know my tut works even it's 4 yo.
Clear description. Thanks :)
Worked Great!! Thanks for the simple and accurate description of how to do this.
Nice tip. Thanks.
Clear description. Thanks :)
thanks a lot , It really helps
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
then add a shortcut, you can use ctrl+x as in ubuntu or anything you like
thank for your help!
Please edit your post and clarify that most of the time, xkill does not require sudo, just Alt+F2, enter "xkill" and kill away...
Very essential post, thank for your help!
very helpful particularly when the main ui crashed.
hey stapia........my 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
You should also show us -newbies- how to find the processes.
thanks. just killed a stubborn send to window with the sudo xkill command
Good to know for the new user
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.
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.
Quality, as trying out all sorts of new stuff (BETA VERSIONS) now I can just close the window without the reset.
That a simple great tutorial, Love it ! Thx bro :D
Its always nice to get more of a feel with the "F" keys. I can now say my mouse feels invincible, program terminated ;D.
A handy trick, thanks a lot.
Many thanks to author and to all who proposed the alternative options.
hello from greece.
very good,but some times we have zombies!
Thanks A MILLION .
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.
wow ... good one :)
thx for sharing
Good to know. Thanks.
Being on a netbook, this will come in handy.
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.
thankyou very muche very helpful.
comments on this tutorial are almost as interesting as the tutorial itself.
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!
very simple too bad the other guys (windoze) aren't this easy to figure out !!!
nice share... i like xkill method that u shared...
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.
I used to use ps aux | grep
Love xkill. Ensure window is visible before calling it up.
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.
when something very bad happened to you, " kill -9 " is your friend. It will kill almost anything, succeed where "killall" fail.
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!
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. ;?)
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.
Thanks, I'll go for the terminator next time, instead of a reboot.
Nice. I didn't know about xkill :)
1. Click Ctrl + Alt + Esc
2. Click on the window which you need to kill.
This would kill the program that has frozen
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.