Terminal isn't pasting correctly.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Terminal isn't pasting correctly.
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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Terminal isn't pasting correctly.
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.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
- AZgl1800
- Level 20
- Posts: 11183
- 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.
and you can use the "up arrow" to retrieve that command and edit it before you hit enter
Re: Terminal isn't pasting correctly.
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.
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?
Your data and OS are backed up....right?
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Terminal isn't pasting correctly.
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."There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.