Copy the Contents of a File to Clipboard from CommandLine

Prerequisites:

sudo apt-get install xclip

Usage:

xclip -sel clip < ~/.ssh/id_rsa.pub