Copy paste for files in linux

xclip is an awesome tool which can be used to pipe output to the clipboard. Use -selection c so that you can paste using Ctrl + V.

# example
xclip -selection c ~/somefile.txt