March 21, 2017

How to copy your file to your clipboard from command line on Linux

For example, copy your ssh public key to your clipboard:
xclip -sel clip < ~/.ssh/id_rsa.pub
$ mongoimport --help | xclip -sel clip
See also:

xclip - command line interface to X selections (clipboard)

Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...