Ubuntu – How to copy command console text

clipboardconsole

I have used the wpa_passphrase command and I get something like this:

network={ ssid="blahblah"
#psk="moreblahblah" psk=d5e532ecca53ea963e5b3b5521bb3682c53fcf5b6d55f15622027145c795b661 }

I need to copy that "psk=[long string]" to my wpa_supplicant.conf file. How can I select it in order to copy it? And then what command do I use to copy it? Such that in my favourite text editor I can press a paste command to paste it? (ps. I don't have a mouse )

Best Answer

if you have a touchpad though, highlight the text and press Ctrl + Shift + C to copy ...

the following resources describe how to copy/paste using keyboard only -- screen/byobu:

How do I integrate Byobu's copy-buffer with the X clipboard?

http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/

Copy and Paste in Scrollback mode (screen/byobu)

  • Enter scrollback mode: Ctrl+A+[ or in byobu also F7
  • Move the cursor to the start of the text you want to copy, hit spacebar
  • Move the cursor to the end of the text you want to copy and hit enter
  • To paste text, hit Ctrl+A+] or Alt+Insert