Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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've been running some Python scripts to graph some stuff and occasionally I'll lose track of what windows it spawned and just kill it with ^Z. However, unlike in Windows, the associated windows don't die; they stick around and cannot be closed.

These windows seem clueless; they don't redraw after being minimized or resized. I'm new to the Linux env so I can't fully articulate what's going on, but in any event, how do I get rid of these zombie-orphan-hobo windows?

share|improve this question
Assuming that you run these scripts from a terminal, you can always type exit and the process(es) should quit automatically (at least with my experience). Also, you can use the ps -A command and then type sudo kill <process id here>. – Alex Spataru Apr 8 '13 at 22:28
up vote 14 down vote accepted

You can use xkill in the command line, which allows you to click an open window to kill the process.

share|improve this answer
Even better if you run it from Alt-F2 so that you don't need a terminal window. – colan Jun 26 '14 at 1:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.