DEV Community

Cover image for Setting and getting clipboard content from terminal
Talles L
Talles L

Posted on

Setting and getting clipboard content from terminal

Setting clipboard:

$ echo foo | xclip -selection c
Enter fullscreen mode Exit fullscreen mode

Getting clipboard:

$ xclip -selection c -o
foo
Enter fullscreen mode Exit fullscreen mode

Top comments (0)