Pasting text into a terminal window

The fact that I could copy text to the clipboard using Ctrl-C but not be able to paste it onto the command line in Terminal using Ctrl-V was always a mystery to me. Ctrl-C for copy, and Ctrl-V for paste, seem to be standard hot keys for almost every application in the Windows’ world, and work just fine in Linux programs such as Gedit and OpenOffice Writer. So, why doesn’t Ctrl-V work “as advertised” in Terminal?

I don’t know the answer to this question, but I do know a workaround. Using Edit – Paste from Terminal’s menu allows text (usually a Linux command string) to be pasted onto the command line.

I have used this technique for years until, just recently, I came across a question on askubuntu.com that provided a couple of faster options.

Pasting Clipboard Contents into Terminal

Q. How can I paste clipboard contents into terminal without having to right click then press the “Paste” menu item? Ctrl-V doesn’t work here!

A. Middle-click, Shift+Ins, or Shift+Ctrl+V.

As indicated, the hot key is Ctrl-Shift-V rather than just Ctrl-V. For non-keyboard lovers, “Middle-click” will generally mean pressing the scroll wheel on the mouse, using this as a centre button.

Source:

http://askubuntu.com/questions/18236/pasting-clipboard-contents-into-terminal

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s