Setting and getting clipboard content from terminal

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

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


Print Share Comment Cite Upload Translate Updates
APA

Talles L | Sciencx (2024-09-03T02:25:55+00:00) Setting and getting clipboard content from terminal. Retrieved from https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/

MLA
" » Setting and getting clipboard content from terminal." Talles L | Sciencx - Tuesday September 3, 2024, https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/
HARVARD
Talles L | Sciencx Tuesday September 3, 2024 » Setting and getting clipboard content from terminal., viewed ,<https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/>
VANCOUVER
Talles L | Sciencx - » Setting and getting clipboard content from terminal. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/
CHICAGO
" » Setting and getting clipboard content from terminal." Talles L | Sciencx - Accessed . https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/
IEEE
" » Setting and getting clipboard content from terminal." Talles L | Sciencx [Online]. Available: https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/. [Accessed: ]
rf:citation
» Setting and getting clipboard content from terminal | Talles L | Sciencx | https://www.scien.cx/2024/09/03/setting-and-getting-clipboard-content-from-terminal/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.