23

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?

Lucio
  • 18,843
David
  • 413
  • 2
  • 4
  • 13

4 Answers4

31

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.

Pablo Bianchi
  • 15,657
Lucio
  • 18,843
8

This should work:

xclip -sel clip < /dev/null
Mark Kirby
  • 18,529
  • 19
  • 78
  • 114
Murat Kazanova
  • 181
  • 1
  • 1
  • 1
    remember the different clipboards, you might need to replace 'clip' with 'pri' or 'sec' or 'buffer-cut' see: xclip -h – Joe Feb 11 '22 at 16:16
2

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
Pablo Bianchi
  • 15,657
David
  • 413
  • 2
  • 4
  • 13
0

If you have xclip:

cat /dev/null|xclip -i