Copy a File to the Clipboard

To copy a file's contents to your clipboard, send it to pbcopy:

pbcopy < ~/.ssh/id_rsa.pub

That one is handy when a website asks for your public SSH key.