xclip string в буфер обмена
echo -n "my string" | xclip -selection clipboard
Rich Raccoon
echo -n "my string" | xclip -selection clipboard