You are not logged in.
This is an oldie but a goodie and for Linux noobs like myself, quite an exciting development
1. When a program gets hung, hit Alt + F2 to bring up the Run dialog.
2. Type in xkill and hit enter.
3. Your mouse cursor will change into a cross or skull and bones.
4. If the unresponsive application is not in focus, use Alt-Tab to switch to it. Left click anywhere on the application window to kill it.
Last edited by nabilalk (2009-03-10 20:10:54)
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
Hello nabilalk!
Cool tips! I'm not a noobs, not a power-user, but I didn't know this.
Thanks.
A+ Francis .
Offline
Hello nabilalk!
Cool tips! I'm not a noobs, not a power-user, but I didn't know this.
Thanks.A+ Francis .
You are most welcome. I found this little trick when reading a Lifehacker article: "Linux fans will instantly recognize Kill as a clone of the handy xkill utility, because both of them let you instantly kill off a process by clicking on one of its windows." Well, I didn't recognize it, but I will now ;-)
Last edited by nabilalk (2009-03-10 20:17:48)
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
If we are talking about helpful kill tips then I'd say
killall <name>is my favorite. Saves the PID look up, assuming you are willing to kill all the processes.
Perhaps more useful than kill all is
kill -9 <PID>I find that when something hangs hard kill is rarely adequate to get the job done, Firefox with a plugin running is the most common example.
FHSM: avoid vowels and exotic consonants and you'll get your handle every time. identi.ca
Offline
If we are talking about helpful kill tips then I'd say
killall <name>is my favorite. Saves the PID look up, assuming you are willing to kill all the processes.
Perhaps more useful than kill all is
kill -9 <PID>I find that when something hangs hard kill is rarely adequate to get the job done, Firefox with a plugin running is the most common example.
Yes, Firefox freezes for me all the time, especially when playing flash videos on my dinosaur of a video card. I'm assuming I look up the <PID> via htop (System Monitor)
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
I added xkill to the openbox menu..
so if i have an unresponsive program I can shut it with out a terminal .
Nice and quick
Offline
Yes, Firefox freezes for me all the time, especially when playing flash videos on my dinosaur of a video card. I'm assuming I look up the <PID> via htop (System Monitor)
Easier than that if X is unresponsive, use ps command from terminal.
ps -Agives you a list of running processes and their PIDs.
Offline
Yes, Firefox freezes for me all the time, especially when playing flash videos on my dinosaur of a video card. I'm assuming I look up the <PID> via htop (System Monitor)
An easier way is to use
alt-f2
pkill firefox (or the name of the app you want to end)
Online
Does pkill allow cleanup? I haven't had much luck with it. I've find that it's rare that something hangs such that kill works without -9. At least for me it seems like when something hangs for more than 60 seconds it's really stuck.
FHSM: avoid vowels and exotic consonants and you'll get your handle every time. identi.ca
Offline
Thanks for the tip, nabilalk. I've been curious if there was a way to emulate the "force quit" gnome panel applet and xkill seems to be it. Just added it to my menu
Give A Monkey A Brain and He'll Swear He's the Center of the Universe
Offline
nabilalk wrote:Yes, Firefox freezes for me all the time, especially when playing flash videos on my dinosaur of a video card. I'm assuming I look up the <PID> via htop (System Monitor)
Easier than that if X is unresponsive, use ps command from terminal.
ps -Agives you a list of running processes and their PIDs.
Thanks for the tip.
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
You can also use "kill $(pidof <name>)" instead of looking up manually on another command's output. This will redirect the pidof's output directly to kill's parameter, giving it the number you'd type yourself manually.
Offline
How do you set this up as a menu item in CrunchBang?
Mac user with Linux tendencies
#!CrunchBang Statler & UNE 10.10 on Acer 1810TZ (OCZ Vertex 60gb SSD)
#!, Mint LMDE & Peppermint Ice on MSI Wind U100 (Gigabye Atheros b/g wireless)
Various linux virtual machines on a Mac mini, an iMac and a MacBook Pro
Offline
@fox,
right-click the desktop, go to the preferences, openbox, gui menu editor
there you choose a place where you want to add it to the menu, select 'new item' (not 'new menu'!)
give it a label (mine is called "killer") and the execute command: xkill
save the new menu (first icon in the gui)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
When pkill isn't sufficient to kill firefox, killall -9 firefox-bin will do the trick.
GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/ Dutch
Offline
sweet, i'm adding xkill to alt-F6 right away.
/me hits ctrl-tux-alt-o to open his rc.xml in gedit ready to edit.
/me lubs shortcuts.
/me copies his last added keyboard shortcut, pastes it just above it, and just below the line depicting where his edited shortcuts are, then changes the apropriate bits, the shortcut to A-F6, the name to xkill and the command to xkill, job done, he saves, he waits for the save to complete, he hits tux-alt-o to restart openbox, waits for the windows to refresh, then tries out his new kill keybind on xclock...
/me lubs shortcuts
/me lubs /me actions.
/me lubs "lubs".

this should sort out that pesky sfxr that so often refuses to close. 
lovely. thnx for this guys. will save me all that extra keypresses through htop that i had usually been doing.
Last edited by Digit (2010-01-19 20:39:27)
in honour of Aaron H. Swartz,
make liberating JSTOR (and similar)'s database(s) of knowledge from behind paywalls your #1 priority,
and keep making the world a better place.
live up to what he lived for.
Offline
sweet, i'm adding xkill to alt-F6 right away.
/me hits ctrl-tux-alt-o to open his rc.xml in gedit ready to edit.
/me lubs shortcuts.
/me copies his last added keyboard shortcut, pastes it just above it, and just below the line depicting where his edited shortcuts are, then changes the apropriate bits, the shortcut to A-F6, the name to xkill and the command to xkill, job done, he saves, he waits for the save to complete, he hits tux-alt-o to restart openbox, waits for the windows to refresh, then tries out his new kill keybind on xclock...
/me lubs shortcuts
/me lubs /me actions.
/me lubs "lubs".
this should sort out that pesky sfxr that so often refuses to close.
lovely. thnx for this guys. will save me all that extra keypresses through htop that i had usually been doing.
ctrl-tux-alt-o ?
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
ctrl-tux-alt-o ?
I put xkill on Ctrl+Alt+Q
Offline
nabilalk wrote:ctrl-tux-alt-o ?
I put xkill on Ctrl+Alt+Q
Would you mind posting detailed instructions?
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
Kuno wrote:nabilalk wrote:ctrl-tux-alt-o ?
I put xkill on Ctrl+Alt+Q
Would you mind posting detailed instructions?
I put this into my rc.xml:
<keybind key="A-C-q">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>XKill</name>
</startupnotify>
<command>xkill</command>
</action>
</keybind>
Then restart openbox, afterwards that keycombo gives xou that evil "X". 
Offline
nabilalk wrote:Kuno wrote:I put xkill on Ctrl+Alt+Q
Would you mind posting detailed instructions?
I put this into my rc.xml:
<keybind key="A-C-q">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>XKill</name>
</startupnotify>
<command>xkill</command>
</action>
</keybind>Then restart openbox, afterwards that keycombo gives xou that evil "X".
Cheers for the info.
Have you noticed that an xkill of Firefox (for example) does not actually kill the process? If you try to open up firefox after an xkill, Firefox says that it is already open. Launching htop shows that the FF process is still open. An earlier post in this thread suggests
killall <name>to kill stubborn processes like hanging Firefox with plugins.
killall firefoxsuccessfully quits FF and removes it from htop (System Monitor). Since Firefox is the app that I have to forcequit the most, this is particularly useful.
Last edited by nabilalk (2010-01-19 23:53:21)
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
In that case i use the taskmanager (LXTask) to kill firefox. Maybe replace xkill with "killall firefox" in above rc.xml-section...
Last edited by Kuno (2010-01-19 23:59:37)
Offline
In that case use the taskmanager (LXTask) to kill firefox. Don't know if its possible to customize a keycommand for that...
LXTask via Terminal? I'm not finding that command working, and LXTask in Terminal gave me a "command not found" error.
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
Kuno wrote:In that case use the taskmanager (LXTask) to kill firefox. Don't know if its possible to customize a keycommand for that...
LXTask via Terminal? I'm not finding that command working, and LXTask in Terminal gave me a "command not found" error.
No, not terminal. It's a gui-app. If not in the repos, you can get it here: http://people.linux.org.tw/~andrew/debian/lxde/lxtask/
Offline
nabilalk wrote:Kuno wrote:In that case use the taskmanager (LXTask) to kill firefox. Don't know if its possible to customize a keycommand for that...
LXTask via Terminal? I'm not finding that command working, and LXTask in Terminal gave me a "command not found" error.
No, not terminal. It's a gui-app. If not in the repos, you can get it here: http://people.linux.org.tw/~andrew/debian/lxde/lxtask/
lxtask was not available in the repos or Synaptec. Thanks for the link. This is a nice little app.
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.