Send Output to Clipboard (OS X)
Sometimes you need to share your public key or other information quickly from the command line. Instead of
$ cat ~/.ssh/id_rsa.pub
Copy... paste....
Just do:
$ pbcopy < ~/.ssh/id_rsa.pub
And it's on your clipboard ready for pasting!
Written by Max Woolf
Related protips
1 Response
Similarly, pbpaste
will past whatever is in your clipboard to the terminal, generally works better for text!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#