Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question

migrated from Jan 27 '11 at 8:43

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

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.

share|improve this answer
@UserZer0, xkill rocks! Thanks! – sandyleo Jan 26 '11 at 8:09
Seems like it ought to be easy at first, but CTRL+ALT+ESC is a pretty tough one to do one-handed. – druciferre Sep 12 '13 at 1:51
fantastic. I was stuck in the middle of less-ing a file. I could kill the less command, but it wouldn't do anything. And the parent shell couldn't be killed! At last xkill the xterm did the trick. – Pierre D Apr 29 '14 at 19:18

You can use the kill command with -9 like this: kill -9 pid

share|improve this answer
is there any quick way to know the pid of hung xterm? – sandyleo Jan 26 '11 at 8:12

Run xkill, click on the blank window. Right click to cancel.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .