Forrest logo
back to the xsel tool

xsel:tldr:91474

xsel: Clear the clipboard.
$ xsel -cb
try on your machine

The command "xsel -cb" is used to clear (empty) the contents of the clipboard in the X Window System.

Here's a breakdown of the command:

  • "xsel" is a command-line tool in Linux/Unix systems that manipulates the X selection or clipboard.
  • "-cb" is an option/flag that is used with "xsel" to specify the X clipboard as the target.

When you run "xsel -cb", it sends a request to the X server to clear the contents of the clipboard. This means that any data that was previously copied or cut from applications and stored in the clipboard will be removed, thereby making the clipboard empty.

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 xsel tool