xsel

X11 selection and clipboard manipulation tool. Use a command's output…

xsel

X11 selection and clipboard manipulation tool.

echo 123 | xsel -ib

cat {{file}} | xsel -ib

xsel -ob

xsel -ob > {{file}}

xsel -cb

xsel -op

Также может быть вам интересно:
LinuxFreeBSDТрюки BashТерминал/Консоль
← xrdb xset →