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 | xclip
Then 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"?