TIL: Copy File Contents to Clipboard with `xclip` 2025-02-10 0 minute read GNU/Linux , Technology Instead of cat filename | xclip, just use: 1xclip < filename It’s a more concise approach, saving keystrokes and avoiding the unnecessary cat command.