MacOS – How to clear the pasteboard / find string from the command line

command linecopy/pastemacos

I want to be able clear out the whatever data is cached in find (command-f) clipboard contents from the command line.

Whatever is in there seems to carry across between applications. This is a clear security risk in some cases.

Is there a way to do this?

Best Answer

The magic words seem to be

pbcopy -pboard find < /dev/null