Terminal isn't pasting correctly.

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
messenger
Level 1
Level 1
Posts: 1
Joined: Thu May 31, 2018 8:44 pm

Terminal isn't pasting correctly.

Post by messenger » Thu May 31, 2018 8:49 pm

I was trying to past in the terminal, and it kept pasting and entering the comaned. I needed to edite it before hitting inter, but it kept entering foor me. Please help.

User avatar
caf4926
Level 7
Level 7
Posts: 1868
Joined: Mon Mar 22, 2010 3:21 pm
Location: UK Lake District

Re: Terminal isn't pasting correctly.

Post by caf4926 » Thu May 31, 2018 11:44 pm

ctrl+shift+V
Linux Mint 18.3 Cinnamon

User avatar
catweazel
Level 17
Level 17
Posts: 7024
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Terminal isn't pasting correctly.

Post by catweazel » Fri Jun 01, 2018 1:55 am

messenger wrote:
Thu May 31, 2018 8:49 pm
I was trying to past in the terminal, and it kept pasting and entering the comaned. I needed to edite it before hitting inter, but it kept entering foor me. Please help.
If you don't want to execute the command when you paste it, don't include the new line character when you perform the copy.
Caution: Dancing Wu Li Master and Official curmudgeon-in-chief

User avatar
AZgl1500
Level 8
Level 8
Posts: 2277
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Terminal isn't pasting correctly.

Post by AZgl1500 » Fri Jun 01, 2018 8:04 am

and you can use the "up arrow" to retrieve that command and edit it before you hit enter

User avatar
Flemur
Level 16
Level 16
Posts: 6052
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Terminal isn't pasting correctly.

Post by Flemur » Fri Jun 01, 2018 2:13 pm

Like catweazel said, you copied the carriage return <CR> , so it gets pasted.

Fix: either avoid copying the <CR>, or you can paste the command+<CR> into a text editor to edit it; then paste the edited stuff into a terminal.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
catweazel
Level 17
Level 17
Posts: 7024
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Terminal isn't pasting correctly.

Post by catweazel » Fri Jun 01, 2018 7:02 pm

Flemur wrote:
Fri Jun 01, 2018 2:13 pm
Like catweazel said, you copied the carriage return <CR> , so it gets pasted.

Fix: either avoid copying the <CR>, or you can paste the command+<CR> into a text editor to edit it; then paste the edited stuff into a terminal.
Just to clarify, to the OP, the new line character cannot be seen. It's always at the end of a line and usually gets copied when you drag the mouse to the end of the text and into the next paragraph. You can avoid it by double-clicking a word and using ctrl-arrow on the keyboard to select text. Once you become aware of this character you'll eventually get the hang of avoiding it while using the mouse.
Caution: Dancing Wu Li Master and Official curmudgeon-in-chief

Post Reply

Return to “Software & Applications”