TIL: Copy File Contents to Clipboard with `xclip`

#gnu/linux #technology

Instead of cat filename | xclip, just use:

xclip < filename

It’s a more concise approach, saving keystrokes and avoiding the unnecessary cat command.