Copy file content to clipboard from command line Install xclip pacman -S xclip Run `cat your-file.name | xlicp -selection clipboard