Possible Duplicate:Copy file to xclip and paste to Firefox I would use the following command to copy the output of uptime to the clipboard:uptime | xclipThen I can paste the copied uptime to the console by clicking the middle button of mouse. But when I go to an application like gedit, there is no Paste option available there. How can I copy a text into clipboard so that it could be pasted onto something like gedit?
Pasting the content of xclip onto gedit
x11;clipboard;copy paste
I was having a similar issue until I did the following (on Ubuntu):uptime | xclip -selection cFrom the man pages:-selection             specify  which X selection to use, options are primary to             use XA_PRIMARY (default), secondary for  XA_SECONDARY  or             clipboard for XA_CLIPBOARD