

<- End cursor here right before the arrowĭepending on your browser, it may not even be visible that the text you selected went over two lines. Basically, keys are different under linux, and it does not copy on left mouse, and does not insert on right.
#Putty paste in terminal install#
Copy it, and then paste it into your terminal: echo 'Go go go!' Is there a reason why you do not install Putty in Ubuntu and just that instead of terminal Rinzwind at 0:31 Great idea - just tried, but it didn't worked. Start your cursor right before echo and drag down until the cursor is on the second line, but is right in front of the <- arrow. Start your cursor right before echo and drag until the highlight is right before the arrow: echo "Wait for my signal." <- End cursor here right after the semicolonĪnd now try the second command. Sometimes when you copy text from a website, it's difficult to copy only the text and not the return at the end (and is often made more difficult by the styling on the page).īelow you will find two commands that will illustrate the problem, and that you can "practice" on. The RETURN character and the SPACE character (ascii 32), along with a few other seldom used characters, are known as "non-printing characters" for this reason. The only difference is, when your browser sees the character, it knows that instead of printing a visible character, it should treat it differently, and has special instructions to move the next set of text down to the next line. This character can be deleted with backspace, or copied to the clipboard just like any other regular character. When stored on your computer or printed on your screen, the RETURN character is just like any other letter of the alphabet, number, or symbol. That character is detected immediately by your terminal, and knows it has special instructions to execute what you have typed so far. When you press the ENTER key on your keyboard, all you are doing is sending the character with the ASCII value of 13. This is because there is a RETURN character between the two lines. Instead of waiting for all the input to be pasted in, the first line executes (and for the same reason, the second line may or may not do so as well).

You will see this (there may also be a line saying World): $ echo "Hello" If you look in your terminal, you will not see this: $ echo "Hello" Let's take a different example, copy these lines all at once and paste them into your terminal: echo "Hello" It's the return character in the text you are copying that's triggering the automatic execution.
