TIL: Copy File Contents to Clipboard with `xclip`

0 minute read

Instead of cat filename | xclip, just use:

1xclip < filename

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