How to I bind the kill command?

I want to bind the linux “KILL” command to CTRL + ALT + K.

How do I go about doing this?

Can you be a little more specific as to what you intend to do? Would this kill the current window? GNOME has a “force quit” panel applet, and I’m sure KDE has something similar.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Agreed… how will you give it the PID? If you want a way to kill a
window just run ‘xkill’ (Alt+F2 for the run dialog, then ‘xkill’).

Good luck.

On 02/21/2010 09:16 PM, chief sealth wrote:
>
> Can you be a little more specific as to what you intend to do? Would
> this kill the current window? GNOME has a “force quit” panel applet, and
> I’m sure KDE has something similar.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJLgjICAAoJEF+XTK08PnB55AQP/iJdJZTtlbfmAEUEl+dNSbed
HQDl0i1y6bgc17jKM/Yl6KF9zEWr7qYpdf75P3Oh+Rawdf8NpQ7oK0GoIMj+wf0m
LShzxKPuUPcEwCz57fjRWg9jRDEbsxOkK4lpA39pFbRVODpN8LpVGE1UpWkEBLqV
DWQpK22T/h1X4UpWcCNWv1KMw5JWyuzUNKbj553zpra4tzQewrUS71HJsr0Jv7LP
v6nML4VOE6DfJBuLAh6xgCaTHHc41LTR0meFGwmTdifelHYoAZ0JfaFWHGH7ENGg
QL9IMZswgho0jGpJqreGbcR1P0Z1eiGrUKxiPlBY4sySydryJvLGGmKiEIXlFv+c
jgZj/ynXVaCLHbFHEYwhkbjBzsw1OEuhcyCU/CBLUVRy5Ng5EvVr6dClmxCYtfzm
8WgW1UVpOTePMkb28Z4OWE44nac6BkAr1++9maM2U87mxMmfJXnKzVRcu14zlDUm
3ZVmbR0ovBpwykQo05bpEsSkSHgnZ1IAI426PMxy+0N8YCzRZexdshnLQqCsdN3R
r0kPNcP1h+isVhkZ6OEHUq3SmJ6KH+XNom91BG3O1ZBh7KNn8Aexd98tVRD9gX4W
bB5iEKA02q1srCadhfxizjcO/SujMm8FduYtyazWp9gRbVwQsX6DyP8Z9Li6su9N
Mxgdyg6x34iQNYagFeBT
=nf9M
-----END PGP SIGNATURE-----

neomaxi wrote:
> I want to bind the linux “KILL” command to CTRL + ALT + K.
>
> How do I go about doing this?

yes, you need to be a little more specific…
are you asking for a way to kill a program running in a terminal
window…OR are you asking for a way to kill a running instance of a
program in an X window?

say what you want, and say what desktop environment you are running if
you are actually trying to kill an open window…like, if running
KDE and your (say) firefox is frozen just push Ctrl+Alt+Esc and the
mouse pointer will turn into a skull and crossbones…place that over
the window you wanna kill and left click…done! [this is the same
skull and crossbones you get with Alt+F2 and type in xkill, and it
should work in any desktop environment]

if you want to change the binding for Ctrl+Alt+Esc to Ctrl+Alt+K in
KDE, i guess that could be done, but why?

now, if you talking about killing a program in a terminal, AB is right
you gotta supply a target ID, see man kill…


palladium

To kill a program, you need the process ID. This is called the PID. The other way to kill a program is killall. But even that requires the name of the application. So this key binding would have to pop up a box where the user would either enter the PID or the application name. Unless you want to do as palladium said, and redefine ctrl-alt-esc to ctrl-alt-k. kill(1): terminate process - Linux man page