Forrest logo
back to the xkill tool

xkill:tldr:b35be

xkill: Display a cursor to select a window to kill by pressing any mouse button.
$ xkill -button any
try on your machine

The command "xkill -button any" is used in Linux/Unix systems to forcefully terminate an unresponsive graphical application or window.

The "xkill" command is a utility that kills or terminates a process within the X Window System environment. It is typically used when an application becomes unresponsive or freezes, and the user wants to force its termination.

The "-button any" option is used to specify which mouse button triggers the termination action. In this case, "any" means that any mouse button click will be recognized as the command to terminate the application.

Here's how it works:

  1. Open the terminal.
  2. Type "xkill -button any" and press Enter.
  3. Your mouse cursor will change to a small crosshair or skull icon.
  4. Move the cursor to the unresponsive application or window you want to terminate.
  5. Click any mouse button (left, right, or middle) while the cursor is positioned over the application/window.
  6. The selected application/window will be forcefully terminated, and its associated process will be killed.

It is important to note that using "xkill" is a powerful command that terminates processes abruptly, without giving them a chance to save any unsaved work or perform any cleanup. So, it should be used with caution and only when necessary.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xkill tool