How to clean the clipboard?

I am really used to Windows and the problem of the clipboard retaining information which a third party could see, which thing actually happened to me on a link off of BBC.co.uk.

Therefore I found clipboard cleaner on line free. With an icon pushed, the clipboard is cleaned and safe.

So, what about Ubuntu?


You can use xsel. To install it run this command in a terminal:

sudo apt install xsel

Now, when you want to clear your clipboard, enter

xsel -bc

For more information about this command enter man xsel

Source.


This should work:

xclip -sel clip < /dev/null

I found DIODON app that sets on the menu bar. It is good-looking and works great. I like it better than the one I used in Windows. To install it:

sudo apt install diodon