When I paste into the terminal, sometimes what is in the clipboard is not what I expected. Specifically, it is sometimes pages and pages of text from a website.
When this happens, the terminal goes crazy, blinking rapidly and spitting out command not found
as fast as it can.
I am afraid that someday the text will contain something like rm -rf /
.
What is the best way to:
- act when I make such a mistake?
- prevent such a mistake from occurring?
For details, I use bash in GNU screen windows in a urxvt terminal on Linux.
The usual Ctrl-C
or Ctrl-Z
have no effect in my experience.