Setting and getting clipboard content from terminal



This content originally appeared on DEV Community and was authored by Talles L

Setting clipboard:

$ echo foo | xclip -selection c

Getting clipboard:

$ xclip -selection c -o
foo


This content originally appeared on DEV Community and was authored by Talles L