this post was submitted on 27 Mar 2024
787 points (98.5% liked)

linuxmemes

19702 readers
810 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 55 points 3 months ago (2 children)

Given that their hand is over the mouse and not the keyboard/enter key, I assume they're gonna click close on the terminal :p

[–] mipadaitu 31 points 3 months ago (1 children)

Right click for paste, they have \n in the clipboard

[–] [email protected] 8 points 3 months ago (3 children)

Afaik \n may not run a command. I have pasted multiline commands but they only seem to run after hitting enter

[–] [email protected] 7 points 3 months ago

Depends on the terminal I think. Pretty sure KDE's Konsole warns you that commands may be run when pasting something with newlines, but still allows it.

[–] MeanEYE 3 points 3 months ago

There is an exploit which addresses copy pasting things in terminal. Where you'd copy one thing, but when pasting you get more than you bargained for. Any decent terminal would ignore \n for this reason or at least not treat it as pressing enter.

[–] [email protected] 1 points 3 months ago

It definitely runs the command for me in GNOME Terminal. Pasting multiple commands at once runs everything but the last command.

[–] [email protected] 1 points 3 months ago

Well they did have the type the command, and to do that they would first have to navigate to the terminal (assuming the machine isn't running just a plain tty) first.