Send Text to Clipboard from Console

bash Dec. 19, 2015, 1:10 a.m.

resakse  ~ $ pbcopy < ~/.ssh/id_rsa.pub                                                                              
resakse  ~ $

Sometimes I want to copy text to clipboard without dragging my stupid touchpad the easier way, ie: for copying ssh key, etc.. 

We can use pbcopy command for that.

Any thoughts?