I have this nice alias which works well within my Ubuntu when I need to copy some terminal output right into my clipboard:
alias xclip='xargs echo -n | xclip -selection clipboard'
Now something like cat myfile | xclip
and I have output in the clipboard ready to be pasted within Ubuntu, which is really handy.
However, this does not work if I want to paste into my Windows 10 host (I am using Ubuntu VM). I always select and Ctrl+Shift+C, but I would love to be able to copy command output straight into clipboard just like selecting and Ctrl+Shift+C. Is there similar thing to xclip
where I can copy/paste from Ubuntu to Windows 10 without mouse selection?
xcutsel
. Linux has more than one clipboard, and vmware/virtualbox copy automatically only one.