views:

430

answers:

1

If I'm working in a terminal window in Linux, is there a keyboard shortcut I can use to select output displayed on previous lines? If I select something with the mouse I can copy using ctrl-shift-c, but is there a way to select without using the mouse at all. I'm using either gnome terminal or kde konsole in ubuntu desktop.

For example I often need to copy results from a mysql query and then google them.

+1  A: 

you can use screen and enter copy mode with ^A-Esc. start selecting text with space and end selecting text with space. insert text with ^A-]

knittl