Cut and Paste from Screen to clipboard

copying text from linux screen to your clipboard

install "xsel"
sudo apt install xsel

Within Screen, enter copy mode: CTRL + A [
Press spacebar to start a selection, and spacebar to end a selection.

Now on the command line type:
xsel -bi

Press CTRL + A ]

Then press CTRL + D

Your clipboard will contain whatever was pasted

Get low cost holiday inspiration with my new project: GoHere.holiday :)