I am about to press enter to run a command in terminal, but before doing that, I want to copy the command to clipboard without using the mouse.
How?
If you're somewhere other than the terminal, Ctrl+Home does it.
Is there a way of arbitrarily selecting text like that in the terminal?
EDITED:
- assume that using other programs like
screen
is not a good alternative - the text is to be pasted outside the terminal, so Ctrl+y and similar sequences do not solve it either