Artificial intelligent assistant

Fix command when it accidently had a trailing single-quote? I do this a lot: user@machine: $ ls' > # Me: Argh! I did it again! >' : No such file or directory Basically, I finish typing a command, and hit `'` by accident when trying to hit enter, and end up with an un-closed single-quote. I can't get back up to the previously line to delete it, so end up just running the command with a syntax error. Is there a way to recover this and fix my command?

You could hit `Ctrl``C` instead to avoid running the command, then the up arrow and `BackSpace` to remove the offending quote.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b2c7e9f6c2f8b4f3900305c0a18a4d9b