Copy terminal output to clipboard

xclip seems to do better with VirtualBox

alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

Note: When using VirtualBox there seems to be a limit how much can be copied to the clipboard and copied to the host OS

$ ls -ltr | xsel --clipboard

 

 

Leave a Reply