Im using Awesome as desktop environment, as you can see in the image below, the application (aMule) crashed but the window is still open, so I would like to close it to restart it, but as you can see in terminal window it is not in list of process, so how can I close aMule window?

Even using Mod4-Shift-c the window is not closed.

enter image description here

  • 1
    What does xkill say, if anything, after you try to use it to kill the window? – dhag Mar 10 '15 at 18:17
  • 1
    Oh hey, I'll post that as an answer, then. – dhag Mar 10 '15 at 18:20

I would suggest using the utility xkill in this case.

If it didn't work, it would at least probably give some information explaining why.


First of all, the fact that it is not shown in the first few lines of top does not mean that aMule is not running. In fact, since it has crashed, it is likely to be there in a zombie state, using next to no resources so not seeing it in top is normal. Instead of top, you should use ps or pgrep to find running processed:

pgrep amule


ps aux | grep amule

That should give you the process's PID which you can then use to kill it (change 1234 to the PID returned by pgrep):

kill -9 1234

Alternatively, you can try

killall -9 amule

Finally, the graphical program xkill will kill the process that spawned any window you click on.

  • 1
    +1. You can also use xprop to see what PID does the window belongs to. – Arkadiusz Drabczyk Mar 10 '15 at 19:12
  • Use pgrep -l amule instead. The -l switch will print the name of the process as well as the PID. That way, you know you're not mathcing against processes like amulet that contain amule as a substring. – mckenzm Mar 10 '15 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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