Tutorial :Kill all Programs on a specific display


does anyone know how to kill all Programs on a specific X display?

In example, I need to kill all Programs on Display :1. How is this possible?


xkill -displayname :1 -all  

quoth the manual:

This option indicates that all clients with top-level windows on the screen should be killed. Xkill will ask you to select the root window with each of the currently defined buttons to give you several chances to abort. Use of this option is highly discouraged.


This command does not provide any warranty that the application whose connection to the X server is closed will abort nicely, or even abort at all. All this command does is to close the connection to the X server. Many existing applications do indeed abort when their connection to the X server is closed, but some can choose to continue.


xlsclients lists all clients with windows on the screen, and xkill kills them.

Why do you need this?

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »