Selecting text in terminal without using the mouse

Viewed 54992

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.

4 Answers

$ emacs -g '80x24' --eval '(term "/bin/bash")'

    C-c C-k    char mode
    C-c C-j    line mode
    C-space    Selecting text in terminal without using the mouse
    M-w        copy to X11 clipboard

C - Ctrl M - Alt

Related