Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select text using keyboard in linux shell

It is common to not use the mouse at all in a terminal, but it is not easy to find how to select text in a terminal just with the keyboard.

Once selected CTRL+SHIFT+C and CTRL+SHIFT+V can be used to copy and paste, but how to select text?

like image 347
Delirium tremens Avatar asked Feb 24 '11 09:02

Delirium tremens


2 Answers

Highlighting with the mouse. *runs*

like image 168
Ignacio Vazquez-Abrams Avatar answered Oct 02 '22 23:10

Ignacio Vazquez-Abrams


Just found this on net..

  1. Open screen: screen
  2. Run your program, producing output you want copied
  3. Enter copy mode: ^A [
  4. Move your cursor to the start point
  5. Hit enter
  6. Move your cursor to the end point
  7. Hit enter
  8. Paste: ^A ]

would that do ?

like image 24
Vaibhav Avatar answered Oct 02 '22 22:10

Vaibhav