Wednesday, January 12, 2011

PBCopy - Command Line Copy and Paste

A recent tweet by @ryanflorence reminded me an under-used Mac OS X terminal command. "pbcopy". pbcopy copies input into the clipboard like so:

Copy my ssh key without screwing it up:
cat ~/.ssh/id_rsa.pub | pbcopy

It's really great. I highly recommend it.

No comments:

Post a Comment