How to copy the output of a command to clipboard in Linux?

You can use program like xclip to copy the output of a command to clipboard in Linux.

Example:

Install xclip:

Copy the output of a command or pipe to clipboard in Linux:

Paste from clipboard to the Linux terminal:

Leave a Reply