– you should have xclip installed
Add to your ~/.bashrc
copyClip() {
cat $1 | xclip -selection clipboard
}
alias cb=’copyClip $1′
Now you can use like this:
cb file_to_copy
after this the content of the “file_to_copy” is available at the computer clipboard