Linux – kill a hung xterm

killlinuxterminalxterm

I used to rlogin/telnet a server and use xterm& to create several xterm sessions. But from time to time, the xterm may hang there and not responding at all(window can't be closed), leaving just a blank window.

I know the pid of all opened xterms from the 'mother xterm'. Is there any way to find out which is hanging one? I'd like to kill it immediately.

My environment is followed. I choose CDE as my desktop environment. Thanks!

Linux 2.6.9-67.ELsmp x86_64
OS: RedHat Enterprise Linux 4.0 U6
xterm: X.Org 6.8.2(192)

Best Answer

Try pressing Control+Alt+Esc, you should get an X instead of your curser and it should kill whatever you click on. If the shortcut dosen't work run xkill from another terminal and the rest is the same.

Related Question