DEV Community

Connor Bode
Connor Bode

Posted on

5 1

Pipe to Clipboard in Linux

Well, this is a pretty quick tip but if you can memorize this one you'll be happy in the terminal.

Let's say you want to copy the output of a command to your clipboard. What do you do? Use xclip.

For example, I just needed to add my public SSH key to my Digital Ocean account.

cat ~/.ssh/id_rsa.pub | xclip -sel clip

That's it, now you can ctrl + v your SSH key. WIN!


Follow me on dev.to or on Twitter for more quick tips!

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay