Use a command's output as input of the clip[b]oard (equivalent to Ctrl + C)

xsel

echo 123 | xsel -ib

click the source code to copy install xsel on any operating system with command-not-found.com