I have an application that needs to access the clipboard on *nix OSs but I do not have access to the x event loop because of how it works. Therefore I need to send a command to another application to perform copy paste of strings. I was going to use xclip until I found out it is not standard with every Linux distro. Is there an application that comes standard on every (or almost every) Linux distro that can do copy paste of strings?

  • 1
    AFAIK, there is no tool guaranteed to be on every Linux distro. xclip, or xsel are very common. If you really need it to be present, why not simply request that it be installed?
    – Zoredache
    Oct 20, 2011 at 18:32

1 Answer 1


I do not know which tool is most common, but in addition to xclip there also is a tool called xsel (MacOS has pbcopy). Then there also is uclip, however it is not going to be as widespread and it have some problems. See also this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.