Using xclip to copy terminal content to clipboard

It’s quite annoying when I know the command I can use to copy the content on a terminal to clipboard. I know, I can run man xclip, but I think it’s still easier for me to visit this page and see how to do it. For example, I want to copy the content of my ssh keypair, ed2559.pub, to clipboard, and here how it can be done: ➜ xclip -sel clip < ~/....

March 4, 2022 · 1 min · 142 words · kenno