You can use the xclip command to copy the content of a file directly into the clipboard, If you don’t know what xclip is and how to use it, then this article can be very handy for your future use.