Sunday, February 24, 2013

Copy and Paste in terminal

When working in terminal you may notice that you can not use the usual  Ctrl + C  and  Ctrl + V  commands. Instead, use  Ctrl + Shift + C  to copy and  Ctrl + Shift + V  to paste. It is very handy when copying all those command examples from internet.
There is, though, another "fancier" way to copy and paste text in the terminal and in linux in general, and this one uses a second clipboard to remember your selection:
to copy : select the text with the mouse cursor (it is automatically copied to the second clipboard);
to paste : press middle mouse click and the above selected text will be pasted;
alternate paste (in case you don't have middle button on your mouse) :  Shift + Ins .
You may find quite useful to have two separate clipboards for temporary storing copy-paste information.

No comments:

Post a Comment