Article 4YKJQ In terminal, instead of executing command, linux inserts ">" in newline after it

In terminal, instead of executing command, linux inserts ">" in newline after it

by
Janez72
from LinuxQuestions.org on (#4YKJQ)
I have a command that I wanna run in terminal, but everytime I paste and 'execute' it, instead of doing anything, the terminal goes in the following line, and puts the ">" symbol at the beginning. I think it treats everything like text or something, because I can keep pressing enter, and it will keep going in new lines putting the above mentioned symbol at the beginning.

The code I want to paste is:
Code: sudo -s -- << EOF
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
mkdir -p /etc/apt/sources.list.d
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
apt-get update
apt-get install -y runescape-launcher
EOFThe Result I get when I hold 'enter' is:
Code:sudo -s -- << EOF
> wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
> mkdir -p /etc/apt/sources.list.d
> echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
> apt-get update
> apt-get install -y runescape-launcher
> EOF
>
>
>
>
>Any help MUCH apperciated!latest?d=yIl2AUoC8zA latest?i=e-H9eJQXsC0:jSzh6eYf3o8:F7zBnMy latest?i=e-H9eJQXsC0:jSzh6eYf3o8:V_sGLiP latest?d=qj6IDK7rITs latest?i=e-H9eJQXsC0:jSzh6eYf3o8:gIN9vFwe-H9eJQXsC0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments